a good component is always reactive to its props. it doesn’t assume that its props will stay the same. the result of rendering a component with props changing from A to B to C should usually be the same as if it was rendered with C to begin with. a good component doesn’t obstruct the data flow.
Oct 23, 2024 11:21a good component often hides a bit of state. it doesn’t burden unrelated components with state they shouldn’t know or care about.
a good component only contains the minimal necessary state it needs. it doesn’t hold things in state if they can be calculated on the fly from existing information.