Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 677 Bytes

File metadata and controls

13 lines (9 loc) · 677 Bytes

Experiments on the Effectiveness of React's useMemo hook

This repository contains the code used to run the experiments as described in the blog post titled: "React: When should 'useMemo' and 'useCallback' be used, and when not, complete with experiments"

Setup

  1. clone the repository
  2. run npm install and npm run start
  3. navigate to the site, likely at localhost:3000
  4. using the UI, control the setup by modifying the scale and selecting to run the experiment with / without useMemo
  5. with the React Developer Tools browser addon's profiler function, run the experiment.

note: the data for the blog post was collected from a production build of this site