Skip to content

Commit

Permalink
Switch React.Fragment out for span
Browse files Browse the repository at this point in the history
This will make the DOM easier to reason about and a clearer 1:1 mapping.
Then I also don't gloss over the `</>` part.

Hat tip to C. Lates.
  • Loading branch information
ethanmick committed Apr 16, 2022
1 parent e928b1c commit 8e9d5b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/react/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ Go back to `App.tsx` and change the content to:

<CodeFile language="tsx" file="App.tsx">
{`
const App = () => <>Hello World</>
const App = () => <span>Hello World</span>
export default App
`}
</CodeFile>
Expand Down

0 comments on commit 8e9d5b3

Please sign in to comment.