Created
May 19, 2020 16:08
-
-
Save ozcanzaferayan/0d0749428d100016ee5a2f79417349c7 to your computer and use it in GitHub Desktop.
This file contains 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 React from "react"; | |
import { useRecoilValue } from "recoil"; | |
import { currentUserNameQuery } from "../state/selectors"; | |
export function UserInfo() { | |
const userName = useRecoilValue(currentUserNameQuery); | |
return <div>{userName}</div>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment