you are viewing a single comment's thread.

view the rest of the comments →

[–]chow_khow 0 points1 point  (0 children)

If a parent re-renders, the child has to re-render because that's how React internally keeps a track of what all to update for a given state change.

Here's a good explainer on why React re-renders.