Open 01abhishekjain opened 2 years ago
Yes, we can do it.
@01abhishekjain if u install react with create-react-app or vite, it will provide you a template project to play with. And the project already bundled with webpack and babel and you don't have to worry about the configuration of react. In this case you can run react app normally and when you build an app by npm run build
, then with the help of babel and other transpilers the code get converted to support all browsers.
Now if you want to create a react project from scratch, you need to mannually create the environment like create a webpack config to provide react run environment or babel.
You can still change the configuration of your react app if you use create-react-app or vite
Yes, you can do it!
The answer given is:
But, you can use it in React, like so:
What am I missing?