6 ms·
Create React App 4.0
- mrath 6y agoI have a hobby project in react which I started using CRA. It only have few screen but uses material UI and few other libs so the minified bundle size already over 700k without splitting. In dev the refreshes became slow to the point where I have wait a few seconds to see result after I change a file in IntelliJ. So I wanted to give snowpack a try, and the results are amazing, In a blink of eye the browser screen is updated and state is preserved. I read the linked issue on react-refresh on the release note, but no idea if it fast enough or not.
- whb07 6y agoFor the love of all mighty, if you happen to use the TS template DO NOT FOR A SECOND assume you’re using it in strict mode. For whatever reason CRA has a different hidden env var flag that controls this even though you have a “strict: true” in your tsconfig file.
- andyfleming 6y agoThis may have to do with Babel compiling typescript. It might run the type-checking separately and compile regardless of if it passes.
- whb07 6y agoI jumped into a greenfield project that had been already polluted and “using” TS. The build was still running with a 1/0 and other explicitly broken code somehow.
- lucasmullens 6y agoI'm curious how this compares to Next.js. Next.js has had fast refresh for a while, and works great as an all-in-one solution for React websites. I think the main difference is CRA has the concept of "ejecting", allowing you to avoid interacting with config files until you really need to customize how the build works.
- andyfleming 6y agoNext.js is more opinionated, has more features, and provides server-side rendering. You might choose one or the other for different use cases.
- dbbk 6y agoNext.js is severely restricted by its proprietary router. CRA has the downside of not supporting server rendering, but you can at least use the standard react-router.
- bhl 6y agoBoth the standard react router and nextjs framework are open source.
- cercatrova 6y agoSo what? If NextJS doesn't support another router, you're not gonna patch it in unless you want to continually be out of sync with the main branch.
- SahAssar 6y agoThat does not mean that it is proprietary, see https://en.wikipedia.org/wiki/Proprietary_software https://en.wikipedia.org/wiki/Proprietary_software
- cercatrova 6y agoThe weird proprietary was used colloquially, not to mean "not open source". In this case, it means something that is only used in relation to one other thing, which is NextJS.
- dbbk 6y agoI obviously did not mean it literally.
- 6y ago
- pdxandi 6y agoI know there are tradeoffs to using any project framework or generator, but I'm just impressed by the amount of work people dedicate to these open source platforms. Congratulations on the release! I used this for a production application at work and it's served its purpose masterfully. Thank you for continuing to push the ecosystem forward.
- loosetypes 6y agoAnyone have recommendations for express api scaffolds in the same vein (and easily compatible with CRA). I’m looking for something that bakes in background jobs, db structure, and deploy scripts but haven’t found anything with comparable community/usage.
- sattoshi 6y agoYou may like the .NET ecosystem.
- KarimDaghari 6y agoMaybe take a look at Nest.js: https://nestjs.com/ https://nestjs.com/