Take this pull as a proposal, you don't have to add all of these things, but some of them are warranted.
Here's a list of things that need(ed) consideration, in my opinion. In order of importance:
Consistent style (and basic lint stuff)
spacing
spaces after if
let instead of var
dangling commas
lower case functionName
life-cycle methods before others, followed by render.
Using defaultProps and getting rid of prop || defaultValues
Class properties (since stage 0 is being utilized)
state = { ... };
get rid of binding and use property initializers
other initialization stuff in componentWillMount as opposed to constructor, I'm not sure about the science behind using which, but it felt more natural to drop the constructor and use react methods.
Nothing major, just quality of life fixes.
Edit:
Take this pull as a proposal, you don't have to add all of these things, but some of them are warranted.
Here's a list of things that need(ed) consideration, in my opinion. In order of importance:
functionName
prop || defaultValue
sstate = { ... };
componentWillMount
as opposed toconstructor
, I'm not sure about the science behind using which, but it felt more natural to drop the constructor and use react methods.