Skip to content

Instantly share code, notes, and snippets.

@weaponsforge
Last active July 17, 2020 10:57
Show Gist options
  • Save weaponsforge/0cb1b6fa55cde0ca283e07f176c1a3b6 to your computer and use it in GitHub Desktop.
Save weaponsforge/0cb1b6fa55cde0ca283e07f176c1a3b6 to your computer and use it in GitHub Desktop.
minimal material-ui react component template
import React from 'react'
import clsx from 'clsx'
import PropTypes from 'prop-types'
import { makeStyles } from '@material-ui/core/styles'
const useStyles = makeStyles(theme => ({
container: {
backgroundColor: 'palegreen'
}
}))
function Component () {
const classes = useStyles()
return (
<div className={classes.container}>
Minimal Component
</div>
)
}
EmptyPlaceholder.propTypes = {}
export default EmptyPlaceholder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment