cardboardboxpepe / fitness-mcfitface

this is a small react based web app meant to create and track workout routines, exercises and whatever other shit I decide to put in
1 stars 0 forks source link

MFW EACH COMPONENT HAS ITS OWN FOLDER #2

Open JLefebvre55 opened 3 years ago

JLefebvre55 commented 3 years ago

just have a components folder, and move the css into the body like so:

const useStyles = makeStyles((theme: Theme) =>
  createStyles({
    CLASSNAME: {
        field: value
    }
  }),
);

and then inside of your component: const classes = useStyles();

and then for each element you render use: <Element className={classes.CLASSNAME}>

JLefebvre55 commented 3 years ago

Although nice job sticking to function components - class components are crimge

cardboardboxpepe commented 3 years ago

the fuck is any of that