News for hackers. Stuff that matters.
Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by sunsetSamurai on Monday May 11, 2020 @02:07PM (#23145121)
Dumb question, but what is the benefit of something like Nextjs over react/redux? So many things to learn...
Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by TechBro8615 on Monday May 11, 2020 @02:27PM (#23145345)
It’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.

Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by jonny_eh on Monday May 11, 2020 @02:15PM (#23145211)
It provides pages/routing, JS/CSS compiling/bundling, and even optional static site bundling. It's basically the missing pieces for a deployable react app.
Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by tiborsaas on Monday May 11, 2020 @02:53PM (#23145609)
If 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.
Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by jonny_eh on Monday May 11, 2020 @03:18PM (#23145867)
We're blessed with many great and free options.
Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by developerdylan on Monday May 11, 2020 @02:29PM (#23145375)
Anecdotal, 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.
Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by s_y_n_t_a_x on Monday May 11, 2020 @02:29PM (#23145374)
Nextjs 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.

Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by sunsetSamurai on Monday May 11, 2020 @02:35PM (#23145429)
Let's say I wanna build a multiplayer board game, which one would you recommend react or nextjs?
Re:Next.js 9.4 – Fast Refresh, Incremental Static Regeneration by s_y_n_t_a_x on Monday May 11, 2020 @02:42PM (#23145498)
React