Techniques to optimize React render performance: part 2

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • use-deep-compare-effect

    🐋 It's react's useEffect hook, except using deep comparison on the inputs, not reference equality

  • Unfortunately useMemo does not accept a second comparison argument like React.memo. If you want to do a deep comparison there are several code samples and libraries out there you can use.

  • memoize-one

    A memoization library which only remembers the latest invocation

  • Caching computed values in class components is a bit clunkier, especially if you are trying to avoid the UNSAFE_componentWillReceiveProps() lifecycle function. The React maintainers recommend using the memoize-one library:

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • react-virtualized

    React components for efficiently rendering large lists and tabular data

  • You can leverage libraries like react-virtualized or react-window to handle this for you.

  • react-window

    React components for efficiently rendering large lists and tabular data

  • You can leverage libraries like react-virtualized or react-window to handle this for you.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts