Skip to main content

Split components

Signs we should split a component:

🚩 The props are complicated and confusing

🚩 We need different combinations of props for different use cases

🚩 There is a large number of optional props

🚩 The API allows "illogical" prop combinations

🚩 The component is expensive to render

Source : Cory House