-
Notifications
You must be signed in to change notification settings - Fork 20
Code Guidelines
gmverdon edited this page Dec 27, 2017
·
6 revisions
Welcome to the TradingBot wiki!
- PascalCase for component folders (
src/components/HelpButton) - 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
componentsfolder for subcomponents - (optional) make
imagesfolder - (optional) make
testsfolder with tests to test the folder
- Reusable components go into
src/components
Scenes are like pages
- PascalCase for scene folders (
src/components/Home) - 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
componentsfolder for subcomponents - (optional) make
imagesfolder - (optional) make
testsfolder with tests to test the folder