Hi Michał, thanks for the feedback. Agree that the component composition of the example isn’t ideal - in a real application you could split them.
Coming up with a good example is hard. One could opt for
A more real, “complex” component that can’t be broken down into smaller components and contains enough moving parts to really justify why the new API is necessary. Problem with putting this sort of example into a blog post is that the reader has to spend a lot of time trying to understand it, and many people understandably won’t.
A dumbed-down “simple” component that one can very quickly understand but requires the reader to “imagine” a more complex version of it to understand the problem we are trying to solve.
In this post I’ve opted for the latter.
If you’re interested in a slightly more complex example that can’t really be split into multiple components, check out this example.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Michał, thanks for the feedback. Agree that the component composition of the example isn’t ideal - in a real application you could split them.
Coming up with a good example is hard. One could opt for
In this post I’ve opted for the latter.
If you’re interested in a slightly more complex example that can’t really be split into multiple components, check out this example.