React's simple idea: Decompose complexity via components


React's simple idea: Decompose complexity via components.

Every time I see diffs like this I smile.

The code on the left is repetitive. Differences and inconsistencies are hard to detect.

The code on the right is concise. The component abstraction highlights the differences.

View original on X