Skip to content

Improve folder structure #303

@aganglada

Description

@aganglada

Summary 💡

As the project grows, the components folder is getting bigger and bigger, I suggest a different approach to structure it where every component is in its own folder allowing the set of components to grow and follow clearly.
Also adding a pages folder for every view on the router. And leaving App and Router outside.

Examples 🌈

components/
   Preview/
      __tests__
      Preview.js
      index.js
   ...
pages/
   Playground/
      __tests__
      Playground.js
      index.js
   ...
App.js
Router.js

Where Preview.js is the actual component and index just export it to do a clean import from the outside.

Motivation 🔦

Improve the maintainability of the project

cc/ @smeijer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions