Skip to content

Instantly share code, notes, and snippets.

@ozcanzaferayan
Created May 19, 2020 13:49
Show Gist options
  • Save ozcanzaferayan/79c49b4a695ed800c633c811470b49bb to your computer and use it in GitHub Desktop.
Save ozcanzaferayan/79c49b4a695ed800c633c811470b49bb to your computer and use it in GitHub Desktop.
function FontButton() {
const [fontSize, setFontSize] = useRecoilState(fontSizeState);
return (
<button onClick={() => setFontSize((size) => size + 1)} style={{fontSize}}>
Click to Enlarge
</button>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment