7 Matching Annotations
  1. Dec 2022
    1. That way, components that use API only won’t re-render when the data changes.
    2. It is okay to use array’s index as key, if the list is static, i.e. elements are not added/removed/inserted/re-ordered.
    3. useMemo has its cost (consumes a bit of memory and makes initial render slightly slower)
    4. React.memo has to be applied to the elements passed as children/props.
    5. Props are not affected by the state change, so heavy components won’t re-render
    6. context changes
  2. Nov 2022