Skip to content

Accepting pull requests? #3

Open
@readeral

Description

@readeral

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions