#useState not allowed?

1 messages · Page 1 of 1 (latest)

broken flax
#

Feel free to ping me whenever

odd star
#

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

broken flax
odd star
#

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

spare harness
#

or you can just use react-no-ssr