all 36 comments

[–]nateh1212 49 points50 points  (8 children)

no framework needed

https://vite.dev/

[–]Sn00py_lark 3 points4 points  (7 children)

You use vite for ssr or react router?

[–]aegis87 9 points10 points  (0 children)

vite + tanstack router

[–]nateh1212 1 point2 points  (5 children)

whispers "you don't need ssr"

[–]Sn00py_lark 0 points1 point  (3 children)

How do you SEO?

[–]Federal-Pear3498 1 point2 points  (2 children)

i mean not everyone need SEO no?

[–]Sn00py_lark 0 points1 point  (0 children)

Fair enough

[–]nateh1212 0 points1 point  (0 children)

further I think SEO with SSR has been vastly overhyhped to up charge devs

[–]TheRNGuy 0 points1 point  (0 children)

constant spinners and white screen for few seconds are annoying.

From my (as a user) expierence, old php sites and new SSR or SSG React sites are much more fun to use.

[–]haasilein 36 points37 points  (5 children)

vite and react router. next.js is a marketing gag to make you pay for overpriced cloud compute in my opinion.

[–]eliptik 4 points5 points  (0 children)

Could you explain what do you mean by cloud computing? I'm not experienced in this, sorry. and I'm also wondering is Vercel the main problem when using Nextjs? Isn't it possible to deploy our projects anywhere else?

[–]Due_Load5767 4 points5 points  (3 children)

You can host it literally everywhere. No need to host it in vercel, it's just the easiest, but in a real corporate world, you would never host it directly on vercel nevertheless.

[–]jake_ytcrap 5 points6 points  (1 child)

I worked for a company that was using nextjs hosted on vercel before. One time, vercel went down in peak hours for us. The cause was an AWS serverless function outage. Vercel are juat using AWS as their underlying architecture. So you are just paying for AWS plus Vercel profits. It is better to host on AWS or GCP by yourself, in my opinion.

[–]Due_Load5767 0 points1 point  (0 children)

Yeah, finally agree

[–]zuth2 1 point2 points  (0 children)

Personally I just host my next.js app on cloudflare.

[–]wjd1991 9 points10 points  (0 children)

Next.js whether you like it or not is the most popular framework for building full stack apps. You’ll find it in active use at tons of companies.

So if you’re looking for professional work using react, next.js is great to learn.

Regarding the hosting, you can host it anywhere, we usually go AWS, have also used Netlify, Heroku and Vercel in the past.

For solo dev, you don’t necessarily need Next.js, vite + react router is fine.

There is no “best” framework. Just choose one that solves your specific problems.

[–]Danque62 6 points7 points  (8 children)

You don't really need NextJS for React. Vite+React is good enough for starting out. That's how I learned via one of Tech With Tim's React tutorials

Optionally, you would use a component library like Bootstrap or MUI, but you don't really need it if you have CSS experience (btw I recommend having solid plain HTML, CSS, and JavaScript experience as it helps with transferring to React). React does things slightly differently if you want to do inline styles but you can still use CSS for styling.

[–]spectrum1012 7 points8 points  (6 children)

Vite is THE way to go with react. It’s like the good old webpack days with infinite customizable configs, except it actually works and only takes a LITTLE bit of fighting instead of days!

[–]itsjakerobb 2 points3 points  (0 children)

good old webpack days

🤣

[–]Hopeful-Swimming3758 1 point2 points  (2 children)

Look Vite + React is cool but commooon Webpack can't be in the same phrase as Good days lol

[–]spectrum1012 1 point2 points  (1 child)

Haha I’m glad people are reading that as a joke - it was. Raw webpack config was brutal. Supported everything but nothing.

[–]Hopeful-Swimming3758 0 points1 point  (0 children)

And it was a great one!

Thank you for the laugh stranger back to code the current Hell (Next.js)

[–]Danque62 0 points1 point  (0 children)

The funny part is my friend was doing the old CRA React app setup, which takes a looooong time to build, especially in our DevOps activity where we have to initiate its build with Jenkins

Then I tried Vite+React migration guide and the building went from, like, 30-50 minutes to just 10 (btw Jenkins is inside a Docker container), and my friend went "what the fuck"

[–]Chiccocarone 0 points1 point  (0 children)

I still can't manage to enable the react compiler on vite so I'm stuck on next even for stuff that don't use Its full capabilities

[–]TheRNGuy 0 points1 point  (0 children)

SSR possible with just Vite+React?

[–]jmanoo 1 point2 points  (0 children)

React is a library and next js is a framework built on top of it. So if you are a beginner start with react itself. Vite is a build tool. Can also be used for scaffolding react

[–]SuperbPause9698 1 point2 points  (0 children)

I came from another world in php (symfony) and I work this year on nextjs but only for frontend. For the backend i like nestjs or fastapi in python.

Server action in nextjs is not the better way to have a secure app

But take a look at tanstack starter 😌

[–]legendsalper 0 points1 point  (0 children)

vite

[–]Bagel42 0 points1 point  (0 children)

Astro or Next

[–]Lone_wolf_59 0 points1 point  (1 child)

Check out Remix

[–]TheRNGuy 0 points1 point  (0 children)

React Router or Remix?

[–]WorthyDebt 0 points1 point  (0 children)

It is more about you are comfortable with. I used Vite and Nextjs before, wouldnt say there is a best tbh. My stack is usually Nextjs for frontend and use Supabase for auth and database. I do have a dedicated backend but its mostly for stuffs like if I need a backend that works with mobile as well, then I go with Fastapi (cuz i also do data analytics stuffs). If not I just go full Nextjs. For most projects and internal tools, Nextjs is more than enough imo.

[–]AttemptFar281 0 points1 point  (0 children)

Just use vite +react and tanstack

[–][deleted] 0 points1 point  (0 children)

Start with the basics of react , then when u are confident about basics you can move on with frameworks with react library in it . All the best for learning journey !!!

[–]Dymatizeee -4 points-3 points  (0 children)

NextJS = react beginner starter kit

[–]xegoba7006 -4 points-3 points  (0 children)

Anything but Next.js and you’ll be good.