I'd like to keep the main.tsx file content short for readability, but having the root element as app may be problematic/confusing and it was reported before #99. However, defining React in the files scope or using StrictMode may be a preference and it's not necessary at the getting started sections.
I've updated all examples 268aedd to use root as the html mount target instead of app as that's what you'd get after creating a Vite project. Also tried to follow the getting started steps and it should work perfectly fine:
Hey @Dank-del, thanks for submitting this.
I'd like to keep the
main.tsx
file content short for readability, but having the root element asapp
may be problematic/confusing and it was reported before #99. However, definingReact
in the files scope or usingStrictMode
may be a preference and it's not necessary at the getting started sections.I've updated all examples 268aedd to use
root
as the html mount target instead ofapp
as that's what you'd get after creating a Vite project. Also tried to follow the getting started steps and it should work perfectly fine:Thanks again.