Skip to content

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