create-client icon indicating copy to clipboard operation
create-client copied to clipboard

[React] Modernize the code

Open alanpoulain opened this issue 3 years ago • 5 comments

For React generator only.

Use Context API instead of Redux. Or maybe Redux Toolkit. Use React Hook Form instead of Redux Form. Upgrade React Router. Use hooks.

alanpoulain avatar Aug 23 '22 14:08 alanpoulain

I propose to deprecate this generator in favor of the Next.js one instead. The only issue I see with Next is that it isn't compatible with React Native.

dunglas avatar Aug 24 '22 09:08 dunglas

Don't you think some people prefer a simple React app instead of a Next.js one?

alanpoulain avatar Aug 24 '22 09:08 alanpoulain

It's harder to maintain for no real benefits IMHO. People with specific needs can create and maintain they own templates.

dunglas avatar Aug 24 '22 20:08 dunglas

I'd suggest reconsidering the decision to deprecate the React generator.

In 2024, Next installations account for around 25% of total React installations. https://npmtrends.com/@vitejs/plugin-react-vs-next-vs-react

And @vite/plugin-react, for example, has 75% of Next installations.

The majority of developers still use React without Next.

J3m5 avatar Mar 13 '24 13:03 J3m5

As long as both are maintained, why not, but that's not the case at present, and no one has volunteered to maintain the non-Next variant.

dunglas avatar Mar 25 '24 11:03 dunglas