3 ms·
Dumb question, but what is the benefit of something like Nextjs over react/redux? So many things to learn...
by sunsetSamurai 6y ago
Dumb question, but what is the benefit of something like Nextjs over react/redux? So many things to learn...
- jonny_eh 6y agoIt provides pages/routing, JS/CSS compiling/bundling, and even optional static site bundling. It's basically the missing pieces for a deployable react app.
- developerdylan 6y agoAnecdotal, but it's an incredibly satisfying development loop for anyone with a limited staff. Deploying to Vercel gets you so many convenient tools out of the box, and I haven't even left the free plan. Very helpful in a startup environment.
- tiborsaas 6y agoIf I don't need anything fancy (not even SSR), Parcel does it for me out of the box: parcel build *.html --public-url https://domain/ It's great to use my dev/build tool for static site generation.
- jonny_eh 6y agoWe're blessed with many great and free options.
- TechBro8615 6y agoIt’s not a replacement for react. It’s built on top of react and gives you all the best practices for SSR and development setup out of the box. It’s been highly optimized (including with help from the Chrome team), and is in use at some very large websites. I can’t recommend it enough. Although if you’re doing anything with moderate complexity, it is still important to understand what’s going on under the hood. At least, you should know the difference between client side routing and server side routing, and any implications of when you might need to treat one differently than the other. I could see a total noob potentially getting hung up on that aspect of it. But the rest of the ease-of-use outweighs any complexity stemming from SSR, IMO.
- s_y_n_t_a_x 6y agoNextjs is an opinionated stack that specializes in SSR, routing, and bundling. React/Redux are building blocks to your own "React Stack". You can use other state libraries (like xState, MobX, etc) depending on your programming style (reactive, state machines, etc.) It depends what you want to build. You choose how you stack it.
- sunsetSamurai 6y agoLet's say I wanna build a multiplayer board game, which one would you recommend react or nextjs?
- s_y_n_t_a_x 6y agoReact