Skip to content

Code Guidelines

gmverdon edited this page Dec 27, 2017 · 6 revisions

Welcome to the TradingBot wiki!

Components

  1. PascalCase for component folders (src/components/HelpButton)
  2. When creating a new component do this in the following manner:
  • Add folder with name of component
  • Add index.js with the component in it
  • (optional) make components folder for subcomponents
  • (optional) make images folder
  • (optional) make tests folder with tests to test the folder
  1. Reusable components go into src/components

Scenes

Scenes are like pages

  1. PascalCase for scene folders (src/components/Home)
  2. When creating a new scene do this in the following manner:
  • Add folder with name of scene
  • Add index.js with the scene in it
  • (optional) make components folder for subcomponents
  • (optional) make images folder
  • (optional) make tests folder with tests to test the folder

Clone this wiki locally