Advertisement
Guest User

Untitled

a guest
Feb 24th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. import * as React from 'react'
  2. import { Theme } from '@material-ui/core/styles'
  3. import { makeStyles } from '@material-ui/styles';
  4.  
  5. const useStyles = makeStyles(({ palette }: Theme) => ({
  6. root: {
  7. // backgroundColor: palette.primary,
  8. },
  9. }),
  10. { name: 'MyComponent' }
  11. )
  12.  
  13. interface Props {
  14. title: string
  15. }
  16.  
  17. const MyComponent = ({title}: Props) => {
  18. const c = useStyles({})
  19. return <div className={c.root}></div>
  20. }
  21.  
  22. export default MyComponent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement