Skip to content
RED SAGSkills
hard20 pts · first answer countsreactperformance

Why React.memo did not help

Child is wrapped in React.memo, but it still re-renders every time Parent renders. What is the most likely reason?

function Parent() {
  const [n, setN] = useState(0)
  const options = { sort: "asc" }
  return <Child options={options} onPick={() => setN(n + 1)} />
}
Choose one answer