Skip to content

Instantly share code, notes, and snippets.

@0916dhkim
Created August 18, 2021 01:32
Show Gist options
  • Save 0916dhkim/989d2df9609df86ea3da23a2c0cbf1cb to your computer and use it in GitHub Desktop.
Save 0916dhkim/989d2df9609df86ea3da23a2c0cbf1cb to your computer and use it in GitHub Desktop.
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
const makeStyles = (theme: Theme) =>
StyleSheet.create({
url: {
color: theme.link,
textDecorationLine: 'underline',
},
});
// Inside component
const styles = useMemo(() => makeStyles(theme), [theme]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment