fullstack-hy2020 / fullstack-hy2020.github.io

https://fullstack-hy2020.github.io
Other
1.53k stars 3.84k forks source link

Update part1a.md - note about StrictMode #3750

Open domluther opened 1 month ago

domluther commented 1 month ago

By default, when using npm create vite@latest part1 -- --template react

main.jsx will look like this

ReactDOM.createRoot(document.getElementById('root')).render(

); Your example on the page doesn't have the tags. I added a note saying this. I asked on Discord and heartsmagic suggested it was probably removed to not confuse learners with strict mode. This note hopefully clarifies that. I am unsure of the exact reason so am happy with any other reason being given.