Ejecting our project

One of the other options available to us is the ability to eject our project in Create React App. Ejecting an app means that it removes all of the scaffolds and confines of the Create React App CLI, with all of the bonuses and caveats that you might expect from such an operation. For one, we gain greater ability and control over our project, and can tweak things as we see fit, which is great; but it also puts you into a world where you need to understand your Babel configs, your Webpack configs, and every other behind the scenes configuration option that you were previously able to ignore.

Eject is very much a double-edged sword; it's a powerful tool, and it allows you to move beyond the rules that Create React App introduces into your world. However, you'll now be responsible for any headaches that come as a result of configuration modifications in the future.

That being said, eject is also an important command in the Create React App world. I've seen many projects that started off with a Create React App built project, but changed when the app became sufficiently complex. At that point, ejecting is a good idea, in order to be able to appropriately tweak things as you need to. Again, a big focus of this book is to understand how to become an expert on Create React App and its latest version; so, understanding and using all of the commands is a major part of that.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.190.156.80