Skip to content

Instantly share code, notes, and snippets.

@manoelneto
Created August 5, 2018 15:12
Show Gist options
  • Save manoelneto/95deea56679eb817cded8604562be941 to your computer and use it in GitHub Desktop.
Save manoelneto/95deea56679eb817cded8604562be941 to your computer and use it in GitHub Desktop.
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