itispaleocapa / paleobooks

Repository per il progetto paleobooks (app libri usati esperia)
GNU General Public License v3.0
2 stars 0 forks source link

Code refactoring and project structure improvements #3

Open cristianlivella opened 4 years ago

cristianlivella commented 4 years ago

For a better understandability and maintainability I suggest to refactor the React project, with better separation of components and a better project structure, for example like this:

- src
   - components
      - common (components used by various pages)
      - navigation (components used for navigation purpose, like the navbar, the drawer, etc...)
      - pages
         - ExamplePage
            - components (folder that contains component used only by this page)
            - ExamplePage.js (main component of the page)