Created
November 13, 2021 04:50
-
-
Save techomoro/4b8321cb779930219c613e3645d3c1fe 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 { lengthState } from "../selectors/name"; | |
export default function LengthComponent() { | |
const length = useRecoilValue(lengthState); | |
return <h3 className="length">{length}</h3>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment