/react-re-render-example

Example showing React re-rendering behavior in a grid of 100 cells

Primary LanguageTypeScript

react-re-render-example

Three example pages with a grid of 100 cells to demonstrate re-rendering behavior when using React:

Usage

  • Install project dependencies and run the dev server

    $ npm install
    $ npm run dev
    

Use React Dev Tools to highlight updates when components render

Alternatively, look in the "Console" for render counts

useWhyDidYouUpdate to show that potentiallyMemoBreakingProp is not equal