Course lesson
Derive State from a Jotai Atom in React
Derived atoms can be created from other atoms. To do so, you pass a read function as the first argument which is traditionally called get. this will allow you to retrieve any other atom and transform the data received.
- Duration
- 2 min
- Access
- Free
- Transcript
- Available
Derived atoms can be created from other atoms. To do so, you pass a read function as the first argument which is traditionally called get. this will allow you to retrieve any other atom and transform the data received.
The derived atom can be used just like a normal atom but this way lets you easily separate logic outside of a component.