Description
I originally wrote this while knowing nothing about React. However, it would be great if this can be rewritten to make use of proper style guides (see https://airbnb.io/javascript/react/).
Motivation
It will offer more readability, and proper code structure is also a plus.
Suggested Implementation
See the Airbnb React/JSX Style Guide and follow the descriptions from the style guide
Alternate Implementations
You can also create your own conventions (please don't), but just be consistent.
Description
I originally wrote this while knowing nothing about React. However, it would be great if this can be rewritten to make use of proper style guides (see https://airbnb.io/javascript/react/).
Motivation
It will offer more readability, and proper code structure is also a plus.
Suggested Implementation
See the Airbnb React/JSX Style Guide and follow the descriptions from the style guide
Alternate Implementations
You can also create your own conventions (please don't), but just be consistent.