Created
August 25, 2022 10:35
-
-
Save dgtlmonk/f63578671423e88a0d4d8eb091bd07ed to your computer and use it in GitHub Desktop.
react re-render
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
React avoiding re-render | |
Children as Props | |
 | |
Moving state down | |
 | |
Component as Props | |
 | |
React.memo | |
This can be useful when rendering a heavy component that is not dependent on the source of re-renders (i.e. state, changed data). | |
 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Children as Props
Moving state down
Component as Props
React.memo
This can be useful when rendering a heavy component that is not dependent on the source of re-renders (i.e. state, changed data).
