Joshua-Disney / shopping-list-frontend

MIT License
0 stars 1 forks source link

Architecture Suggestion: Helpers #28

Open indifferentghost opened 4 years ago

indifferentghost commented 4 years ago

For helpers this ends up being a non-idiomatic junk drawer. To prove my point you have axiosWithAuth.js, a utility function, semantically under /components/helpers. This becomes clearer when separating pages from components as mentioned previously. A more ideal directory structure might look like:

/src
  - /components
       - /PrivateRoute.js
  - /pages
      - /Dashboard.js