ToyNet
  • Welcome 🎉
  • Contributing Code to ToyNet
    • Contributing Code to ToyNet
    • Developer Setup
    • Pull Request Checklist
    • Frontend (ToyNet React)
      • Conventions
      • Unit Testing
      • End-to-End Testing
      • Continuous Integration
Powered by GitBook
On this page
  1. Contributing Code to ToyNet
  2. Frontend (ToyNet React)

Conventions

PreviousFrontend (ToyNet React)NextUnit Testing

Last updated 3 years ago

There are some code conventions that the toynet-react codebase tries to follow that are not set in any ESLint rule but will be enforced on code reviews. These conventions help to keep the codebase similiar across the various components and files in the proejct.

  • We use for most of its components.

  • We try not to use inline styles (e.g. style={{ color: 'white' }}).

  • We use for custom styles that cannot be achieved using the traditional props of the Chakra component (i.e. custom media queries).

Chakra UI v0.8
emotion styled components