new to Nuxt, are folders created manually after init?
I’m used to Next and Sveltekit, usually when I init a new project I start off with a pages/routes folder, src folder etc… however with nuxt I appear to start with files only, is this correct? If so, am I to create the pages and src folders and carry on as usual?
Another question is regarding state, when should I learn Pinia? (Btw is this also used in vue??) seems like it’s the go-to for working with dynamic/reactive state, so I wondered if I should just go into it straight away, or learn the basics through the official docs first and then jump into it.
4 Replies
@CDL you have command to help you
https://nuxt.com/docs/api/commands/add
Great, thanks!
I would suggest using useState for small/medium apps.
and pinia does not?
TIL, thanks!
Forgot I still had this up 😅 alright I’ll look into Pinia and see if I can get to grips with it. I imagine this is also able to be used in vue? Make life easier if I can keep the same state across vue/nuxt, so I’m not confusing myself as I learn.