Skip to content
Open
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/content/learn/add-react-to-an-existing-project.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -75,7 +75,7 @@ document.body.innerHTML = '<div id="app"></div>';

// Render your React component instead
const root = createRoot(document.getElementById('app'));
root.render(<h1>Hello, world</h1>);
root.render(<h1>Hello, world!</h1>);
```

</Sandpack>
Expand All@@ -100,7 +100,7 @@ document.body.innerHTML = '<div id="app"></div>';

// Render your React component instead
const root = createRoot(document.getElementById('app'));
root.render(<h1>Hello, world</h1>);
root.render(<h1>Hello, world!</h1>);
```

Of course, you don't actually want to clear the existing HTML content!
Expand Down