News for hackers. Stuff that matters.
Re:Create-React-App 3.3 by misiti3780 on Thursday December 05, 2019 @09:54AM (#21712721)
Am I the only one here that loves the idea of create-react-app but doesnt use it because it is almost impossible (or rather, was almost impossible as of a few months ago) to utilize features in webpack etc.

The whole idea of "you need to eject" and can only eject one time to install a package that allowed me to use JSX If/Else statements [1] turned me off to the whole thing. Now I have a custom project and just create new ones with cookiecutter

Im open to being wrong here, but the experience kinda sucked IMO.

[1]https://github.com/AlexGilleran/jsx-control-statements

Re:Create-React-App 3.3 by ng12 on Thursday December 05, 2019 @12:49PM (#21714411)
Yeah, it's such a huge failure on Facebook's part. It's completely unusable in an enterprise environment and I can only recommend it for small one-off applications. The tagline they use but is "convention over configuration" but it's really "convention without configuration". It's frustrating the amount of times you find a GitHub issue for a feature you're looking for and the answer from the CRA team is "well we've decided you don't really need it" -- even for things that are a simple one or two line config in Webpack.
Re:Create-React-App 3.3 by zuck9 on Thursday December 05, 2019 @10:17AM (#21712971)
You can use https://github.com/timarney/react-app-rewired to override anything in the default CRA config
Re:Create-React-App 3.3 by sli on Thursday December 05, 2019 @02:15PM (#21715400)
I don't think this works on CRA 3 and it's development has slowed a lot. craco (listed in the alternatives) supports CRA 3.
Re:Create-React-App 3.3 by zuck9 on Thursday December 05, 2019 @03:02PM (#21715893)
I've been using it for a while with CRA 3 / react-scripts 3.2

Works fine for overriding Webpack config at least.

Re:Create-React-App 3.3 by pcmaffey on Thursday December 05, 2019 @10:11AM (#21712898)
Use craco.

https://github.com/gsoft-inc/craco

I needed it to get CRA working in a lerna/yarn workspaces monorepo. Super impressed with how easy config is.

Re:Create-React-App 3.3 by misiti3780 on Thursday December 05, 2019 @02:27PM (#21715528)
this is exactly what i was looking for, thank you!
Re:Create-React-App 3.3 by JMTQp8lwXL on Thursday December 05, 2019 @11:02AM (#21713388)
I see comments praising they can now use new ECMAScript proposals, e.g., nullish coalescing. If you hadn't been at the mercy of an abstracted build tool, you could've upgraded your build system yourself. I don't like the idea of running my projects like that. If I want something in my project, I get it. There's none of this "waiting around" for it.
Re:Create-React-App 3.3 by w33ble on Thursday December 05, 2019 @10:33AM (#21713152)
Nope. My company ended moving off it because it’s not extensible at all. create-poi-react-app is a nice alternative, same functionality (and more) while using webpack chaining and allowing you to bring your own eslint config (or anything else).