Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(feat): add react strict mode and remove deprecated lifecycles methods #128

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Radu-Dunarentu
Copy link

  • added react strict mode for demo
  • removed the following deprecated lifecycle methods: componentWillMount, componentWillUpdate, componentDidUpdate

<div className="form-field">
<label htmlFor="card">Card Number:</label>
<MaskedInput mask="1111 1111 1111 1111" name="card" id="card" size="20" value={this.state.card} onChange={this._onChange}/>
return (<React.StrictMode>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why add this? I think it'd better for the demo to not have an arbitrary performance block on it

Copy link
Author

@Radu-Dunarentu Radu-Dunarentu Jun 13, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how StrictMode is a performance block, care to explain?
Edit: also, having StrictMode warns future developers for potential problems in the application.

Strict mode checks are run in development mode only; they do not impact the production build.

@Radu-Dunarentu
Copy link
Author

any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants