Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/MDX/SandpackWithHTMLOutput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ export default function formatHTML(markup) {
const packageJSON = `
{
"dependencies": {
"react": "18.3.0-canary-6db7f4209-20231021",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verifying for SandpackWithHTMLOutput instances:

  • /reference/react-dom/components/link#linking-to-related-resources
  • /reference/react-dom/components/link#linking-to-a-stylesheet
  • /reference/react-dom/components/link#controlling-stylesheet-precedence
  • /reference/react-dom/components/link#deduplicated-stylesheet-rendering
  • /reference/react-dom/components/meta#annotating-the-document-with-metadata
  • /reference/react-dom/components/script#rendering-an-external-script
  • /reference/react-dom/components/script#rendering-an-inline-script
-      <script>ga(&#x27;send&#x27;, &#x27;pageview&#x27;);</script>
+      <script>ga('send', 'pageview');</script>
  • /reference/react-dom/components/style
+ data-href="PieChart-[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;]">#:R2: .color-0: { color: "red"; },#:R2: .color-1: { color: "green"; },#:R2: .color-2: { color: "blue"; }
- data-href="PieChart-[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;]">#:R2: .color-0: { color: &quot;red&quot;; },#:R2: .color-1: { color: &quot;green&quot;; },#:R2: .color-2: { color: &quot;blue&quot;; }
  • /reference/react-dom/components/title#set-the-document-title ✅

"react-dom": "18.3.0-canary-6db7f4209-20231021",
"react": "canary",
"react-dom": "canary",
"react-scripts": "^5.0.0",
"html-format": "^1.1.2"
},
Expand Down
16 changes: 8 additions & 8 deletions src/content/reference/react-dom/components/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export default function Search() {
```json package.json hidden
{
"dependencies": {
"react": "18.3.0-canary-6db7f4209-20231021",
"react-dom": "18.3.0-canary-6db7f4209-20231021",
"react": "canary",
"react-dom": "canary",
"react-scripts": "^5.0.0"
},
"main": "/index.js",
Expand Down Expand Up @@ -262,8 +262,8 @@ export async function deliverMessage(message) {
```json package.json hidden
{
"dependencies": {
"react": "18.3.0-canary-6db7f4209-20231021",
"react-dom": "18.3.0-canary-6db7f4209-20231021",
"react": "canary",
"react-dom": "canary",
"react-scripts": "^5.0.0"
},
"main": "/index.js",
Expand Down Expand Up @@ -306,8 +306,8 @@ export default function Search() {
```json package.json hidden
{
"dependencies": {
"react": "18.3.0-canary-6db7f4209-20231021",
"react-dom": "18.3.0-canary-6db7f4209-20231021",
"react": "canary",
"react-dom": "canary",
"react-scripts": "^5.0.0",
"react-error-boundary": "4.0.3"
},
Expand Down Expand Up @@ -423,8 +423,8 @@ export default function Search() {
```json package.json hidden
{
"dependencies": {
"react": "18.3.0-canary-6db7f4209-20231021",
"react-dom": "18.3.0-canary-6db7f4209-20231021",
"react": "canary",
"react-dom": "canary",
"react-scripts": "^5.0.0"
},
"main": "/index.js",
Expand Down
12 changes: 6 additions & 6 deletions src/content/reference/react/use.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ function Button({ show, children }) {
```json package.json hidden
{
"dependencies": {
"react": "18.3.0-canary-9377e1010-20230712",
"react-dom": "18.3.0-canary-9377e1010-20230712",
"react": "canary",
"react-dom": "canary",
"react-scripts": "^5.0.0"
},
"main": "/index.js"
Expand Down Expand Up @@ -314,8 +314,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "18.3.0-canary-9377e1010-20230712",
"react-dom": "18.3.0-canary-9377e1010-20230712",
"react": "canary",
"react-dom": "canary",
"react-scripts": "^5.0.0"
},
"main": "/index.js"
Expand Down Expand Up @@ -434,8 +434,8 @@ root.render(
```json package.json hidden
{
"dependencies": {
"react": "18.3.0-canary-9377e1010-20230712",
"react-dom": "18.3.0-canary-9377e1010-20230712",
"react": "canary",
"react-dom": "canary",
"react-scripts": "^5.0.0",
"react-error-boundary": "4.0.3"
},
Expand Down
4 changes: 2 additions & 2 deletions src/content/reference/react/useOptimistic.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ export async function deliverMessage(message) {
```json package.json hidden
{
"dependencies": {
"react": "18.3.0-canary-6db7f4209-20231021",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works ✅

"react-dom": "18.3.0-canary-6db7f4209-20231021",
"react": "canary",
"react-dom": "canary",
"react-scripts": "^5.0.0"
},
"main": "/index.js",
Expand Down