Skip to content

Instantly share code, notes, and snippets.

@thovden
Created March 11, 2020 16:10
Show Gist options
  • Save thovden/689b3f08c84066b8a92b1e4383f1606f to your computer and use it in GitHub Desktop.
Save thovden/689b3f08c84066b8a92b1e4383f1606f to your computer and use it in GitHub Desktop.
JSS
const useStyles = makeStyles(() => ({
root: {
overflowY: 'auto',
flex: 1,
maxHeight: '400px',
}
}))
const TodoList: FC<TodoProps> = props => {
const { className, items = [], title = 'Todo', onUpdate } = props
const classes = useStyles(props)
return (
<div className={classNames(className, classes.root)}>
...
</div>
)
}
export default TodoList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment