Skip to main content

Posts

Showing posts with the label react

React app re-render

 causes: 1.    state/props change 2. context change -  parent render In normal rendering, React does not care whether “props changed” - it will render child components unconditionally just because the parent rendered! If you wrap a component in  memo , it won’t re-render when its parent renders. Should I memo everything? If  memo  has such a great effect on performance, does it make sense to wrap everything with it? Well, not really.