Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Use useRecoilValue hook to read a value from a Recoil atom


    Not every component is going to modify a 'global' state stored in a Recoil atom - in some cases a component just needs to be able to read the value.

    In this quick lesson we're going to learn how to use a useRecoilValue hook to ensure that a component will be able to read a number stored in a Recoil atom in a read-only fashion.