Before You React.memo()

Dan Abramov shares 2 techniques to try before resorting to optimize with React.memo() In this post, I want to share two different techniques. They’re surprisingly basic, which is why people rarely realize they improve rendering performance. These techniques are complementary to what you already know! They don’t replace memo or useMemo, but they’re often good […]


This content originally appeared on Bram.us and was authored by Bramus!

Dan Abramov shares 2 techniques to try before resorting to optimize with React.memo()

In this post, I want to share two different techniques. They’re surprisingly basic, which is why people rarely realize they improve rendering performance.

These techniques are complementary to what you already know! They don’t replace memo or useMemo, but they’re often good to try first.

Covered Solutions:

  1. Move State Down
  2. Lift Content Up

Before You memo() →


This content originally appeared on Bram.us and was authored by Bramus!


Print Share Comment Cite Upload Translate Updates
APA

Bramus! | Sciencx (2021-02-26T23:44:59+00:00) Before You React.memo(). Retrieved from https://www.scien.cx/2021/02/26/before-you-react-memo/

MLA
" » Before You React.memo()." Bramus! | Sciencx - Friday February 26, 2021, https://www.scien.cx/2021/02/26/before-you-react-memo/
HARVARD
Bramus! | Sciencx Friday February 26, 2021 » Before You React.memo()., viewed ,<https://www.scien.cx/2021/02/26/before-you-react-memo/>
VANCOUVER
Bramus! | Sciencx - » Before You React.memo(). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/02/26/before-you-react-memo/
CHICAGO
" » Before You React.memo()." Bramus! | Sciencx - Accessed . https://www.scien.cx/2021/02/26/before-you-react-memo/
IEEE
" » Before You React.memo()." Bramus! | Sciencx [Online]. Available: https://www.scien.cx/2021/02/26/before-you-react-memo/. [Accessed: ]
rf:citation
» Before You React.memo() | Bramus! | Sciencx | https://www.scien.cx/2021/02/26/before-you-react-memo/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.