Skip to content

Commit

Permalink
replace componentWillMount with componentDidMount
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanstitt committed Mar 16, 2020
1 parent 7bcf7e5 commit a40c794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class BraintreeHostedField extends React.Component {
this.context.braintreeApi.setAttribute(this.props.type, 'placeholder', text);
}

componentWillMount() {
componentDidMount() {
this.fieldId = this.context.braintreeApi.checkInField(this.props);
}

Expand Down

0 comments on commit a40c794

Please sign in to comment.