
Recoil State Management What is Recoil? Recoil is a state management library developed by Facebook. It provides a simple and efficient way to manage and share state across in different components in your application. It is much more user friendly. Why Recoil? Recoil has unique advantages compared to other state management libraries. Fewer boilerplates. Simple to learn and understand The data flow is very simple. Atom based architecture. Easy integration. Asynchronous data is queried using pure functions. How to Install Recoil Let's start by installing the library. If you are working on your local computer, you can install Recoil using npm or yarn . npm i recoil // or yarn add recoil Recoil has 2 key concepts. Atoms Selectors Recoil Architecture Atoms :- An atoms are units of state. They are updatable and subscribable. When an atom is updated, each subscribed component is re-rendered with the new value. This is...