ReactQuestion 18 of 28
Pure components
Answer out loud or in your head first, then compare.
Answer
A pure component gives the same output for the same props/state and causes no side effects during rendering.
For function components you can optimise rendering with, for example:
JavaScript
React.memo(Component)How did it go? Be honest — “Not yet” puts the question on your review list.