Replace componentWillMount with componentDidMount and as required, construct(). Fixes #179

This commit is contained in:
crockwave
2020-06-17 20:42:30 -05:00
parent 7e1457bb8d
commit 24b72b5828
29 changed files with 47 additions and 54 deletions

View File

@@ -49,7 +49,8 @@ class Create extends React.PureComponent {
onCoverImageChange: PropTypes.func.isRequired,
};
componentWillMount() {
constructor(props) {
super(props);
this.props.reset();
}