r/reactjs • • Mar 16 '23

Introducing react.dev: the new React docs site!

https://react.dev/blog/2023/03/16/introducing-react-dev
566 Upvotes

74 comments sorted by

View all comments

Show parent comments

6

u/gaearon React core team Mar 17 '23 edited Mar 18 '23

I don't think this is accurate. Almost all of these frameworks let you produce fully client-side apps. Almost all of them do not require a Node.js server. I think we may need to write an article about this or something because this point really seems to get lost.

(Edit) Made a Next.js client-only static-hosting SPA with dynamic routing to show the point: https://twitter.com/dan_abramov/status/1636886736784457734

4

u/Peechez Mar 17 '23

As a dev for a SaaS platform (no SEO needed) with heavy webgl usage as the value prop, I just can't see the appeal of the frameworks for us. Would you say this sounds like a case where they aren't as applicable or am I just missing it?

2

u/gaearon React core team Mar 17 '23

A few questions:

- Does your app have routes?

- If yes, do you show different components on different routes, or is it mostly the same?

- Do you do data fetching? What triggers it? What kind of data do you fetch? Is it personalized or same for every user? What is the source?

- Do you have any semi-static content, like landing page etc? If yes, is it a part of your app or do you have that separately?

5

u/Peechez Mar 17 '23 edited Mar 17 '23

Yeah we have one route where the webgl stuff and the vast majority of business logic is, then some more traditional CRUD stuff at a handful of other routes.

I am just in the early stages of transitioning from a copy-the-entire-db-into-redux-when-the-app-launches legacy system into react-query-and-maybe-uninstall-redux system. The data comes from an internal api and the views are dependent on who the user is and what their role is, which from my understanding disqualifies static generation from next.

Our only static content are a couple pages like Help, FAQ, etc. but even then we have user info, notifications, and background processes like long uploads to display in the periphery.

There are certainly places where I can see server components and especially suspense for data fetching being really useful for us, but I'm still hesitant on the prospect of buying into an entire framework with it's own server architecture to get them. If you were able to tell me that the traditional CRUD routes were a no brainer win with not a lot headache to get going and I could leave the webgl route to be its own thing in client land I'd be receptive