react-memo Questions

5

Solved

My bestSellerDummy data doesn't change, so I'd like to prevent the same Product child to be rerendered if parent rerenders. I have tried using useMemo in parent and React.memo in child but no luck,...

4

Solved

I have two Components, and I wrapped Parent with React.memo: Child const Child = ()=> <div>I'm Child</div> export default Child Parent const Parent = (props)=> <div>{props...
Scrofulous asked 13/3, 2020 at 11:19
1

© 2022 - 2024 — McMap. All rights reserved.