Skip to content

Refactore app.js file and routing system #114

Description

@Sky-De

Make this app more scalable with best practices

  1. replace the fragment that wraps the entire app with div along with the class app and role application
  2. replace #root style in global.css with .app class and move it to the app.css
  3. create routeConfig.js file and move all imports for a route to this file, create and export an array with route objects that contain path and element
  4. import routeConfig in app.js and map it to create all routes dynamically

After these modifications,the App will be more scalable and maintainable and follow best practices

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions