Replies: 4 comments 14 replies
-
I think this might be covered in the new docs? Or maybe you're talking about demos more? |
Beta Was this translation helpful? Give feedback.
-
I personally would love for this to exist. We've talked about it for years but haven't invested the time. AFAIK this isn't currently a priority for the new documentation website, whose initial focus is on explaining concepts from first principles. But I totally agree on the need for real world examples. We've sometimes referred to these as "recipes" since you should be able to copy-paste-tweak the patterns. Community-built would be good, though I would prefer for the React team to maintain editorial control so people have confidence that anything we publish there is endorsed as a best practice. |
Beta Was this translation helpful? Give feedback.
-
I'm curious to hear more about what you mean by this. It's a mechanism to coordinate data loading declaratively — what created the "big corp" perception? Here's a 50-line example using Suspense: https://codesandbox.io/s/keen-herschel-8cxjt?file=/src/App.js
One difficulty here is that you really only see the "overall effect" of the feature when the UI is realistically complex, but at that point, the example is no longer simple enough to follow in isolation. But overall I agree that this is the most "designer-oriented" suite of features we've worked on, and they need to be introduced with a similar designer-oriented mindset. |
Beta Was this translation helpful? Give feedback.
-
Seconded that examples of the use-cases that concurrent features are supposed to fix would be useful. I'm guessing that the examples in the current documentation are still valid for the updated API and can serve as a starting point? Once enough documentation gets released to get started I'd love to try my hand at making some demos :) |
Beta Was this translation helpful? Give feedback.
-
Is there a plan to include a page that lists possible use cases for all the concurrent features / patterns? The examples in the current docs are super helpful but I believe it'd be useful to include some more polished examples that:
Why?
To help designers understand Concurrent React in a more realistic context.
As far as I can see, Concurrent React is very relevant to design, and it should be something that designers are aware of so that they could collaborate with engineering to build the best experience possible.
Also, I think it's generally useful to visualize why it's worth it to go the extra mile to add fine-grained UI improvements such as progressive loading states.
A bit of my background: I've spent the recent couple of years on helping designers understand React. Unlike us developers, most designers don't have the time or skills to learn all the nuances of React -- they have design work to finish too. My focus has been going through all the React topics and pick those that are directly related to design. Usually it's about React fundamentals that would allow a designer to read the JSX code, style it, animate it etc. But Concurrent React seems like the first advanced feature that they'd need to be aware of -- at least what it is capable of.
Does this look like something we could create and maintain as a community? I'd love to contribute to it.
PS: To be honest, I myself have been putting off learning Suspense until now (just finished reading old docs and discussion posts here. They are great!). That's partly because I wanted to keep my mind "fresh" when it's time to write about Suspense. But that's also because I had an impression that Suspense was just icing on the cake that only big corps can afford. A good showcase of its capabilities in combination of its ease of use would give me the motivation.
Beta Was this translation helpful? Give feedback.
All reactions