Skip to content

Folder structure

SHREYAS edited this page May 23, 2024 · 1 revision

Assets:

  • images: Stores image files used throughout the application, such as logos, icons, and background images.
  • styles: SCSS: Contains global SCSS files and variables, as well as shared styles that can be imported into individual components.

Components: Common components

  • Index: This file exports all common components to simplify imports in other parts of the application.

Constants:

  • Routing: Contains route paths and possibly other related constants. This can help maintain consistency and avoid hardcoding strings throughout the app.

Helpers:

  • Utility functions that provide common functionality and can be reused across the application.

Hooks:

  • Custom React hooks that encapsulate reusable logic. This might include hooks for fetching data, handling forms, or managing state.

Reducers:

  • Contains Redux reducers for managing the application state. Each reducer handles updates for a specific part of the application's state.

Routes:

  • Configuration for the application's routes. This may include route components or utility functions for routing, ensuring a clean and organized routing structure.

Services:

  • Modules for interacting with external services like APIs, authentication, or any other external data source. This helps to keep API calls and service interactions separate from your component logic.

Views:

  • Main views or pages of the application, typically corresponding to different routes. Each view can have its own folder if it contains multiple related files such as subcomponents and styles.
Clone this wiki locally