Skip to content

Instantly share code, notes, and snippets.

@dipeshhkc
Last active May 22, 2021 10:17
Show Gist options
  • Save dipeshhkc/01acdc21f25a34a7099e790c496fa9e7 to your computer and use it in GitHub Desktop.
Save dipeshhkc/01acdc21f25a34a7099e790c496fa9e7 to your computer and use it in GitHub Desktop.
import { createUseStyles } from 'react-jss';
const useStyles = createUseStyles(() => ({
middle: {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
},
heading: ({ color, fontSize }) => ({
extend: 'middle',
color: color,
fontSize: fontSize,
"&:hover":{
color:"#0c0c0c"
}
}),
}));
export default function Home() {
const classes = useStyles({ color: '#80722A', fontSize: 40 });
return (
<div className={classes.heading}>
Implementing React-JSS on Next.js Projects.
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment