Closed christalee closed 3 years ago
I squashed the commits (including the changes) but I'm unimpressed with the fragmented diff. Is this because of whitespace issues? I didn't think I introduced any changes but maybe I did.
I made some whitespace-only commits, and the diff is much more readable now! Sorry I didn't get it together to figure that out before I asked for your review. I'll go ahead and merge.
This commit converts Person to use ES6 classes instead of React.createClass, a pre-requisite for migrating from React 15 to 16. It uses
constructor
, a JS builtin, to create the initial state - I'm not 100% sure that's the right way to go and would appreciate feedback on that. Otherwise the function body is nearly unchanged, except for a simplification of Checkbox state inrender
.