Last active
September 29, 2021 13:31
-
-
Save bewarusman/523b56973bad48d3ed0d22c0ab79f278 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useRecoilValue } from "recoil"; | |
| function UsersList() { | |
| const users = useRecoilValue(usersState); | |
| return ( | |
| <ul> | |
| {users.map((user) => ( | |
| <li key={user.id}>{user.name}</li> | |
| ))} | |
| </ul> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment