Open
Description
Hi, would you accept pull requests to update your example?
I've been using your concept for my own site, but the immutability helpers and jquery are unnecessary dependencies:
The jquery ($.isEmptyObject(this.state.validationErrors) in CreateAccount.js can be replaced with (Object.keys(this.state.validationErrors).length > 0)
And if using react with es6 making state updates immutable can be done by utilising arrow functions:
this.setState(prevState => ({
...prevState,
newState
});
Happy to make those changes and submit a pull request if you're happy to accept them.
Thanks,
Al
Metadata
Metadata
Assignees
Labels
No labels