1 Matching Annotations
- Sep 2020
-
-
tip no 8. API should be explicit!
Optional props (which are not used) make the component less reusable.
In my opinion, the API of a component should match strictly the values that are used. If the prop is a large object in which only a subset of of properties are used, then it is better to restrict the API to those set of properties.
-