Skip to content

Clean up the code #9

Description

@devklick

With this being my first ever react app (in fact, first ever front-end app!), there's a lot of code smell going on. I want to clean this up at some point:

  • Remove logic from components - they should more or less just be views
  • Remove metadata out of components (a lot of stuff in Card.tsx, for example, that doesnt really belong there)
  • Use barrel files (I hate seing SomeComponent/SomeComponent in my imports
  • Maybe introduce small state management (e.g. zustand)
  • Probably some other stuff

But before doing any of this, and arguably more important:

  • Write tests I'll take the risk

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions