News for hackers. Stuff that matters.
Re:What React Gets Wrong by TeMPOraL on Thursday January 07, 2021 @05:53PM (#25678805)
> `create-react-app` is not a hello world, it's application scaffolding.

Somebody should've told that to pretty much every author of every React tutorial out there. They all start with `create-react-app` because it's "easier" this way.

> Imagine if I said Ruby's hello world was 1 million lines because I had started with Rails. That is what is happening here.

Incidentally, I remember visiting a code bootcamp a few years ago. Back then, they put people who never saw a line of code in their life in front of Sublime and showed them how to make web apps with Ruby on Rails. So this definitely happens, and the results are as expected.

Re:What React Gets Wrong by williamsmj on Thursday January 07, 2021 @05:57PM (#25678842)
Can anyone point me toward a light(er)weight boilerplate for a react/JSX app than create-react-app? I'm thinking just just package.json and webpack.config.json in a git repo that I can clone to start a new project. Something like this but for react: https://github.com/cferdinandi/build-tool-boilerplate.
Re:What React Gets Wrong by knrz on Thursday January 07, 2021 @06:56PM (#25679416)
I'd check out Parcel, it brings back the experience of throwing in a regular <script> tag and being good to go. https://parceljs.org/typeScript.html
Re:What React Gets Wrong by petrocrat on Thursday January 07, 2021 @07:44PM (#25679790)
npx create-snowpack-app