3 ms·
Also on this topic, the beta React lets you treat loading of both child components and or child data dependencies at a chosen level, bringing them in line with
by sammorrowdrums 7y ago
Also on this topic, the beta React lets you treat loading of both child components and or child data dependencies at a chosen level, bringing them in line with Error Boundaries.
I think going all on on components is very easy to reason about. Same direction React Router went with component based routing making it very easy to for example have:
- logged in user portal
- catch all errors and show a fallback UI
- lazy load child components by routes with fallback loader UI
- use a loader fallback potentially for data dependency too.
I mean, it's not perfect and I can see issues people are mentioning, but it feels pretty good to develop with.
Add to this styled components and everything is so component based it's really nice. One main paradigm for the whole front-end.
I don't think it's the best thing ever, but I've enjoyed the newer approaches when working with them.