What are your favorite small utility packages?

This page summarizes the projects mentioned and recommended in the original post on /r/reactjs

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

    Prevent React component subtrees from rendering.

    I recently came across https://github.com/software-mansion/react-freeze, which is React's Offscreen component implemented with Suspense. It's only <100 lines, but completely changes the way I architect my code.

  • constate

    React Context + State

    Another one I like is https://github.com/diegohaz/constate, also <100 lines, but it makes contexts much easier to use. FB also uses mostly contexts for state management.

  • 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.

  • ts-pattern

    🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.

    ts-pattern - exhaustive pattern matching is very useful. Especially with react-query on the various states of the response. The inference is great as well.

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