Created
August 5, 2018 15:12
-
-
Save manoelneto/95deea56679eb817cded8604562be941 to your computer and use it in GitHub Desktop.
This file contains 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
import React, { Component } from 'react'; | |
import Progress from 'components/Progress'; | |
import ProgressInput from 'components/ProgressInput'; | |
class App extends Component { | |
state = { | |
count: 10 | |
} | |
onChangeCount = count => { | |
this.setState({count}); | |
} | |
render() { | |
return <div> | |
<div> | |
O progresso é {this.state.count} | |
</div> | |
<Progress value={this.state.count} /> | |
<ProgressInput value={this.state.count} onChange={this.onChangeCount} /> | |
</div> | |
} | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment