Created
January 18, 2019 07:49
-
-
Save yerassylad/ef30675b3763f5bd825cf18efa3deb30 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
// component | |
const Component = () => { | |
return <div>props.value<div> | |
} | |
// container | |
class Container extends Component { | |
state = {value} | |
componentDidMount() { | |
// берем данные с сервера | |
} | |
render() { | |
return <Component value={this.state.value} /> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment