Created
September 20, 2018 11:40
-
-
Save jpgorman/30c448d9f498ce3feb60515b83faf81b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class LazyLoadModule extends React.component { | |
... | |
async componentDidMount() { | |
... | |
const {store} = this.context | |
} | |
} | |
LazyLoadModule.contextTypes = { | |
store: PropTypes.object, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment