5 ms·
> Is it the same thing as nuxt js but different? NextJS is a library for doing server-side rendering in your React app. I've never touched Vue, so I don't know
by a_wild_dandan 6y ago
> Is it the same thing as nuxt js but different?
NextJS is a library for doing server-side rendering in your React app. I've never touched Vue, so I don't know if that's what nuxt js does
> Yarn? I thought that npm was the thing to use again.
They're fairly interchangeable and it doesn't matter much these days.
> How does yarn know that “create next-app” command? Perhaps some yarn install globally thing?
Yeah it checks the registry of create-* packages and installs the relevant ones.
> Does it include typescript support or is it javascript only?
Yep, by default can use TS with NextJS. I only use TS when possible. Going back to vanilla JS is a horrifying thought!
> How long will this framework be hip?
React is probably the most popular front-end framework and pretty beloved. It's used seemingly everywhere these days. Since SSR is such an important use-case for websites, I'd wager that combined with how prevalent React is, NextJS will be around for a long, long time.
> Full control over babel or webpack is exactly the thing which makes it complex. It is probably easy to get started and then you have to make that little tweak on a changed babel plugin to make “it” work.
Anecdotally, I've used the default configs for create-react-app starters, NextJS, or Electron Forge starters and haven't needed to modify anything.