jandony / react-workout

Collaborative react workout project
3 stars 0 forks source link

Code Clean Up (All files) #30

Open jandony opened 4 years ago

jandony commented 4 years ago

Once we are at a good stand still, I would like to go through each file and see how we can clean it up (via comments, moving functions to it's parent components, removing unused code, etc.).

jandony commented 4 years ago

Sub Tasks:

  1. Organize code with comments, proper indenting, and spacing

  2. Delete unused code (functions, variables, props, etc.)

  3. Create a single setState for the snackbar. Conversation found here: Here (ex: const [snackbar, setSnackbar] = useState({name: 'example', open: false}); )

  4. Class component vs. Functional component -> I think we should convert App.js to a class component, since we are using State everywhere. I am open to suggestions for best practices though.