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"
- clone the repository
- run
npm install
andnpm run start
- navigate to the site, likely at localhost:3000
- using the UI, control the setup by modifying the scale and selecting to run the experiment with / without useMemo
- 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