Back to Browse

Atomic state management in React

383 views
Nov 28, 2023
4:41

Jotai and Recoil are two libraries for managing state in React, and they share a general philosophy: treating state as small pieces called atoms. However, from the first day I discovered Recoil, I've had an issue with its bundle size, which seems unreasonable and unjustified to me. The only notable argument in its favor is that it originates from Facebook (Meta). In contrast, Jotai adheres to the same philosophy but offers a much simpler API and significantly smaller bundle size. When optimizing your bundle size to enhance the performance of your Single Page Application (SPA), every kilobyte matters! For more information, check out the Jotai documentation at https://jotai.org/, the Recoil documentation at https://recoiljs.org/, and the discussion on Jotai's GitHub about the differences at https://github.com/pmndrs/jotai/discussions/849 (note: this is just one of the many reasons mentioned there)." Find me on Facebook: https://www.facebook.com/lifeloveandmonads

Download

0 formats

No download links available.

Atomic state management in React | NatokHD