▲ | skrebbel a day ago | |||||||||||||||||||||||||||||||
> React is mostly HTML driven by data. I wish! Mostly though, React is a terrible mess of hooks with weird rules, suspense, “use client”, pedantic docs, and millions of other idiosyncrasies that have no business being this mainstream. I think most people agree that the core ideas are great. Eg composable components, props, unidirectional data flow etc. There’s a reason that all other reasonably popular frontend frameworks adopted these ideas. It’s great that React established them. It’s just a bit sad that React established them. | ||||||||||||||||||||||||||||||||
▲ | webstrand a day ago | parent | next [-] | |||||||||||||||||||||||||||||||
I thought the way React did suspense was pretty elegant? The component render function is pure, meaning you can re-render component without unwanted side-effects. So on encountering an unresolved promise, halt and throw the promise, then have the runtime catch the promise and re-execute the render when it resolves. I thought this was really an elegant way to introduce an asynchronous dependencies. | ||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
▲ | rimunroe a day ago | parent | prev [-] | |||||||||||||||||||||||||||||||
> pedantic docs Are you referring to something in particular here? I've had my issues with the docs in the past, but I don't think I'd describe any of them being related to pedantry. | ||||||||||||||||||||||||||||||||
|