Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 839 Bytes

File metadata and controls

49 lines (32 loc) · 839 Bytes

<   JavaScript Code Conventions

 


Back to the top

 

Comments

  • Use TODO + initials comments to label any code as not production ready
// incorrect
const denomination = {
  currencyCode: 'USD' // Yikes!! this should definitely be changed
}

// correct
const denomination = {
  currencyCode: 'USD' // Todo: Replace hard coded currencies with library -paulvp
}

Back to the top

 

Exports

  • Only use named exports
// incorrect
export default class FullWalletListRow extends Component<OwnProps> {
// correct
export class FullWalletListRow extends Component<OwnProps> {

Back to the top