Component design trick: When creating a component, I try to design the...


Component design trick:

When creating a component, I try to design the public API before writing code.

I ask “What is the most desirable code for configuring this component? I experiment with different edge cases.

Then, when I'm happy with the public API, I write code.

View original on X