Skip to content

Commit a40c794

Browse files
committed
replace componentWillMount with componentDidMount
1 parent 7bcf7e5 commit a40c794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/field.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class BraintreeHostedField extends React.Component {
3636
this.context.braintreeApi.setAttribute(this.props.type, 'placeholder', text);
3737
}
3838

39-
componentWillMount() {
39+
componentDidMount() {
4040
this.fieldId = this.context.braintreeApi.checkInField(this.props);
4141
}
4242

0 commit comments

Comments
 (0)