Intro To Rerenders

1 minute read Published: 2025-09-16

let's say we have one heavy component and we want to add modal to that app. so we set state in that component. in react whenever a parent

component is rendered, all of its child component will also re-render, unless we wrap the child in useMemo.