Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[React] Modernize the code #331

Open
alanpoulain opened this issue Aug 23, 2022 · 5 comments
Open

[React] Modernize the code #331

alanpoulain opened this issue Aug 23, 2022 · 5 comments

Comments

@alanpoulain
Copy link
Member

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.

@dunglas
Copy link
Member

dunglas commented Aug 24, 2022

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.

@alanpoulain
Copy link
Member Author

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

@dunglas
Copy link
Member

dunglas commented Aug 24, 2022

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

@J3m5
Copy link

J3m5 commented Mar 13, 2024

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.

@dunglas
Copy link
Member

dunglas commented Mar 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants