Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 532 Bytes

checklist.md

File metadata and controls

41 lines (36 loc) · 532 Bytes
  1. [CODE STYLE] - If you have < 3 attribues on a tag and the values are short write the tag in one line (to make it easier to write and read).

BAD EXAMPLE:

<Sum
  a={2}
  b={3}
/>

GOOD EXAMPLE:

<Sum a={2} b={3} />
  1. [CODE STYLE] - Use string interpolation inside tag content

BAD EXAMPLE: (it is hard to get the final result)

<p>
  Sum of
  {' '}
  {a}
  {' '}
  and
  {' '}
  {b}
  {' '}
  is
  {' '}
  {a + b}
</p>

GOOD EXAMPLE:

<p>
  {`Sum of ${a} and ${b} is ${a + b}`}
</p>