Integrating Jotai in a React Native App
In the previous chapter, we ventured into the mathematical world of XState. We will continue our journey by exploring another young state management library called Jotai. Jotai is inspired by an experimental state management library created at Facebook called Recoil. In this chapter, we will take a brief look at Recoil, an experimental state management library created by Facebook. Once we’re comfortable with the main ideas of this library, namely a new concept called an “atomic state”, we will take a deep dive into Jotai. We will configure Jotai in our app, and we’ll continue to work on data fetching and managing liked images with the help of Jotai. Here’s what we will go over in this chapter:
- What is Recoil and an atomic state?
- What is Jotai?
- Configuring Jotai in the Funbook app
- Using Jotai for
FavoritedImages
By the end of this chapter, you will have a new way of looking at global...