React is typically fast enough


React is typically fast enough.

But here's a simple way to optimize performance: Decompose components so state changes impact a small amount of JSX.

Example:
If a complex page has a form, put the form in a separate component. Now form state changes only re-render the form.

View original on X