Don't Eject Your Create React App
medium.com
Don't Eject Your Create React App
1–10 of 12 posts
Re: Don't Eject Your Create React App
#2Medium is shockingly bad. I see absolutely no value in this service any more.
Re: Don't Eject Your Create React App
#3What I got when I followed the link http://imgur.com/3gcROaQ Medium is shockingly bad. I see absolutely no value in this service any more.
Re: Don't Eject Your Create React App
#4Re: Don't Eject Your Create React App
#5Simple example: with webpack it's trivial to configure it to load env-specific extensions. You can have foo.js, foo.dev.js, and foo.mock.js and it will import the correct one automatically based on an env variable. It's three lines of code that I use in all my React projects and it's honestly enough to keep me away from CRA.
Re: Don't Eject Your Create React App
#6Re: Don't Eject Your Create React App
#7I just wish CRA would give me a hook to touch the webpack configs. I'm willing to bite the pain of needing to rewrite my custom configs if they move to something else. Simple example: with webpack it's trivial to configure it to load env-specific extensions. You can have foo.js, foo.dev.js, and foo.mock.js and it will import the correct one automatically based on an env variable. It's three lines of code that I use i…
[1] https://github.com/timarney/react-app-rewired/
[2] https://github.com/arackaf/customize-cra
[3] https://babeljs.io/blog/2017/09/11/zero-config-with-babel-ma...
Re: Don't Eject Your Create React App
#8Re: Don't Eject Your Create React App
#9It really blows my mind that the latest, greatest technology is so difficult to work with it requires a meta-tool manage the process.
FWIW Angular does the same thing with Angular-CLI. The "problem" is the web dev ecosystem, not React itself.