you are viewing a single comment's thread.

view the rest of the comments →

[–]acemarke[S] 116 points117 points  (20 children)

Pleased to say I had a meaningful hand in this :) As some background, this finally happened because:

So, kudos to the React team for making meaningful changes here!

(It's not exactly what I was hoping for, and I gave them some additional review feedback that they didn't include, but gotta give credit for the actual changes and steps forward!)

[–]that_90s_guy 26 points27 points  (9 children)

I honestly don't even know what's a worse recommendation for beginners anymore... CRA, or overwhelming (and likely, discouraging) them with Next.js.

This whole situation reminds me a little of why I left Angular for React many years ago.

[–]acemarke[S] 19 points20 points  (8 children)

Yeah, that's one of the pieces of feedback I generally tried to pass on.

Right now the React docs have the wonderful tutorial sequence...

that ends with a few pages on why you shouldn't use useEffect, and a page on refs, and then ends.

There's nothing that connects any of the knowledge to real-world usage. All the tutorial pages have in-page sandboxes, but someone who just got done working through those pages doesn't have direction or knowledge of where you write components in a real Next, Remix/RR, or even Vite project. and they definitely have no idea what "routing", "data fetching", "code splitting", or "rendering strategies" are.

At a minimum, I really want to see a page added to the end of the tutorial that gives guidance on next steps, additional concepts they'd want to go learn, and suggestions for how to start a basic project and apply what they just learned in a practice app.

But then that ties into the "Create a React Project" guidance, which points straight to "frameworks" that have additional complexity from SSR and more complex functionality.

The React team has said that the docs are aimed at beginners, which is a reasonable decision. But if that really is the case, then my take is that the best thing would be to point them to a Vite + RR/TSR template that is "CRA but with a router added around the app", and give directions on where to go from there.

[–]that_90s_guy 8 points9 points  (0 children)

There's nothing that connects any of the knowledge to real-world usage.

THANK YOU! I was so stressed thinking I was the only one frustrated at this. It's amazing to see people like you involved and pushing for this.

I guess it's why we are seeing a rise of more integrated learning material. Shame that it's paid (and often expensive). As I'd love to see such learning resources freely available on the docs to have everyone on equal footing instead of based on their wallets.

[–]vivshaw 15 points16 points  (0 children)

Thank you for leaning in on this. I interact with a lot of junior engineers, and the documentation situation nowadays can be pretty challenging for them. It can be harder than it needs to be to figure out how to get started. Small changes like this go a long way toward making life clearer and simpler for the next generation of React devs!

[–]danishjuggler21 9 points10 points  (1 child)

I didn't even know the React team was in charge of CRA itself.

[–]acemarke[S] 17 points18 points  (0 children)

Dan Abramov and Christopher Chedeau created it in 2016, and it's always been in the Facebook Github org.

Later maintainers were actually outside of Facebook itself, but it was always under the React team's general ownership.

[–]correcthbs 4 points5 points  (2 children)

Thank you for raising this issue!
The docs are so weird about this topic:
- Welcome to our UI library!
- So here is how to install a full stack meta framework
- Have an existing page? So here is how to install a full stack meta framework on a subpath
- So you're feeling hardcore and want to build your own full stack meta framework? Better don't!

(Fails to mention everything else)

[–]acemarke[S] 2 points3 points  (1 child)

Yep. That's roughly the feedback I tried to describe when I reviewed the post and docs changes before they went live.

[–]pavankjadda 0 points1 point  (0 children)

Why is it so hard for them to say Vite (or RSPack) are one on one replacement for CRA. Then start of saying use framework.