5 reasons reusable components are harder to write than app code: 1
5 reasons reusable components are harder to write than app code:
1. We have to carefully document each setting so reuse scenarios are clear
2. The APIs need to support apps we haven’t seen
3. The APIs need to balance enforcing consistency with supporting configurability
1/2
4. We need to create demos of various settings, so it’s clear how different combinations work at a glance.
And the big one...
5. Breaking changes are a big deal, so we must try our best to get the API right the first time.
This is why I say writing reusable components is doing development in hard mode.
It's much harder to write reusable code for applications we haven't seen yet.