Dysfunctional Directories: 5 tips for organizing a directory

Messy file cabinets

1. Create folders

React file structure in VSCode

2. Structure your code

3. Comment, comment and comment

// Deconstructing object and grabbing the required parameters to fit for an API call

4. Be modest with your refactoring

var randomWord = "Hey";function palindrome(randomWord) {
// Turns a string to an array, reverses it and joins it back to
// make a palindrome
var reversedRandomWord = randomWord.split('').reverse().join('');

return reversedRandomWord == randomWord;

5. Stay consistent and find your style



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store