Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Latest commit

 

History

History
15 lines (13 loc) · 723 Bytes

contributing.md

File metadata and controls

15 lines (13 loc) · 723 Bytes

Code Guidelines

Please raise an issue if there is a problem with one of these:

  • Follow React Patterns
  • Never modify state directly, use setState(newState) or setState(callback(prevState)=>newState) instead.
  • Every reference to state outside of the render() and constructor(props) should be inside a setState callback.
  • Do not modify props variables from inside the receiving component.
  • Try to create PropTypes entries for your components
  • If the behaviour your code is not obvious, leave a comment
  • Do not initialize state with props unless you hard copy them.

Variable naming

  • lowerCamelCase for variables, properties, etc.
  • UpperCamelCase for constructors.
  • CAPITAL_CASE_WITH_UNDERSCORES for constants.