What is Recoil and an atomic state?
If you’ve been following this book chapter by chapter, you may be feeling as though the list of different types of state management libraries is never-ending. You would be right, to some extent. New state management libraries pop up every few weeks; they are sometimes purely open source, and sometimes company-backed. However, they rarely propose groundbreaking solutions. More often than not, they are newer implementations of known concepts. Those implementations are greatly appreciated, as every developer likes working comfortably – and what are those known concepts, you may ask?
There’s a consensus in the ReactJS world that state management libraries can be divided into three types:
- Flux type – these are state management libraries that hold the state outside of components and use a unidirectional data flow. They are inspired by Facebook’s Flux, the most famous example being Redux. There are modern implementations...