Skip to content

Instantly share code, notes, and snippets.

@ozcanzaferayan
Created May 19, 2020 14:04
Show Gist options
  • Save ozcanzaferayan/760b4285f4977973236c9a529dc2fd56 to your computer and use it in GitHub Desktop.
Save ozcanzaferayan/760b4285f4977973236c9a529dc2fd56 to your computer and use it in GitHub Desktop.
const fontSizeLabelState = selector({
key: 'fontSizeLabelState',
get: ({get}) => {
const fontSize = get(fontSizeState);
const unit = 'px';
return `${fontSize}${unit}`;
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment