#useState not allowed?
1 messages · Page 1 of 1 (latest)
this is nothing to do with tauri and everything to do with using nextjs, you'll wanna be pretty familiar with it if you decide to use it with tauri.
tauri apps don't have backends for nextjs, only a client part, so most things will need to be use client and parts that aren't have to be pre-rendered rather than server-rendered at request time
I am familiar with Next.js, I was just asking if I'm using it correctly, since it's disabled by default
yeah nothing wrong with liberally using use client
react is just server-only as an opt-out rather than opt-in, so if your app needs a bunch of client interactivity then you're by nature going to need use client on a lot of your pages
or you can just use react-no-ssr