Skip to content

Rewrite "adding React to existing app" #988

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

Closed
gaearon opened this issue Jun 22, 2018 · 0 comments
Closed

Rewrite "adding React to existing app" #988

gaearon opened this issue Jun 22, 2018 · 0 comments

Comments

@gaearon
Copy link
Member

gaearon commented Jun 22, 2018

We should throw this way and start over.

https://reactjs.org/docs/add-react-to-an-existing-app.html

Instead it should be two steps:

  • Add a React CDN script tag to your page
  • Run Babel CLI on a directory to transform JSX/ES6 files into ES5

That's it. No package managers, no minifiers, no bundlers, etc.
We should move all that jazz somewhere else.

If you're adding React to an existing app, it's not our concern how you minify/bundle/etc. If you don't want to, it's really your business.

Otherwise we're looking clowny with all this setup.

alexkrolick added a commit to alexkrolick/reactjs.org that referenced this issue Jun 23, 2018
BetterZxx pushed a commit to BetterZxx/react.dev that referenced this issue Mar 21, 2023
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

1 participant