Skip to content

Commit

Permalink
Merge pull request #69 from pedromdev/master
Browse files Browse the repository at this point in the history
Use componentDidMount instead of componentWillMount on Container component
  • Loading branch information
jesusoterogomez authored Oct 18, 2019
2 parents 9b5b956 + 553b7e1 commit 649aa3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Sublime
.sublime*

# Jetbrains
.idea

# NPM
npm-debug.log
node_modules
Expand Down
4 changes: 2 additions & 2 deletions src/components/Container.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export default class extends React.Component {

static defaultProps = {
options: {}
}
};

componentWillMount() {
componentDidMount() {
mergeOptions(this.props.options);
}

Expand Down

0 comments on commit 649aa3b

Please sign in to comment.