-
Document the Usage If you don't document how your component is supposed to be used, it's by definition useless.
-
Allow for contextual semantics Allow your components to accept an as prop, which will consistently let you override what DOM element is being rendered.
function Grid({ as: Element, ...props }) {
return