test.js 528 B

1234567891011121314151617181920
  1. const comp1 = (
  2. <div style={styles} key="something">
  3. Keep the wrapping parens.
  4. </div>
  5. );
  6. const comp2 = <div style={styles} key="something">
  7. Create wrapping parens.
  8. </div>;
  9. comp2A = <div style={styles} key="something">
  10. Create wrapping parens.
  11. </div>;
  12. const comp3 = <div style={styles} key="something">Bump to next line without parens</div>;
  13. const comp4 = <div style={styles} key="something">Create wrapping parens and indent <strong>all the things</strong>.</div>;
  14. const comp5 = <div>Keep it on one line.</div>;