);
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.
By default, when using npm create vite@latest part1 -- --template react
main.jsx will look like this
ReactDOM.createRoot(document.getElementById('root')).render(