News for hackers. Stuff that matters.
Re:Introducing react.dev by IceDane on Friday March 17, 2023 @04:11AM (#35194496)
Just FYI - I would not use CRA. Even the react maintainers basically recommend you don't use it, since it's not really up to date with best principles, and they might eventually change it so that it becomes a wizard that lets you choose between other more modern choices like nextjs or vite.

You probably want to look at vite for a more direct alternative to CRA. No need for things like -rewired, and it's probably 10x faster than CRA.

Re:Introducing react.dev by solarkraft on Friday March 17, 2023 @08:28AM (#35196191)
Back when I did an Angular project, throughout the day Webpack would fill up my RAM so hard that my M1 Macbook (with 8GB of RAM, connected to a 4K display) would eventually crawl to a halt and crash.

No such issues with Vite. It feels super light weight, snappy as hell and can run forever.

Re:Introducing react.dev by Cthulhu_ on Friday March 17, 2023 @10:36AM (#35197657)
The new docs make no mention of create-react-app anymore either: https://react.dev/learn/start-a-new-react-project