What do you lose by pulling out the React application that was created using the create-react-app?

I am interested in replacing the Hot Module with the newly created React application.

The create-react-app Facebook incubator uses Webpack 2, which can be configured to support HMR, however, you need to throw away the create-reaction-application project.

As indicated in the documentation, this is a one-way operation and cannot be undone.

If I do this, I want to know what I can give up. I could not find any documentation explaining the possible drawbacks of the extraction.

+5
source share
1 answer

The current configuration allows your project to receive updates from the main create-react-app command. Once you choose, you will no longer receive it.

This is similar to loading bootstrap css via CDN, rather than downloading source code and directly embedding in your project.

If you need more control over your web package, there are ways to configure and configure it without extracting: https://www.npmjs.com/package/custom-react-scripts

+5
source

Source: https://habr.com/ru/post/1265504/


All Articles