Skip to content

Commit

Permalink
feat(didTransition): change from DidMount to WillMount event
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh-Manogar-E3433 committed Jun 25, 2020
1 parent 2137baa commit c307ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HigherComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';

export default class HigherComponent extends React.Component {
componentDidMount() {
componentWillMount() {
this.props.onEnter(this.props.routerProps);
}

Expand Down

0 comments on commit c307ea9

Please sign in to comment.