Learning the fundamentals of React was reasonably straightforward.
You can profit from the vast ecosystem, and the tons of available material (tutorials, StackOverflow, blog posts, etc.).
But the more you work with state, props, you realize that there are a lot of pitfalls.
You probably don’t need derived state, but sometimes you do. You’re working with stale state; then you try to use a React ref.
Mix that up with
setState is asynchronous. You need to access the updated state, but each render closes over the previous state.
It gets complex, really fast.
There are so many ways you can go wrong.
I’m interested to see if Svelte.js suffers from the same problems.