Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariorodriguespt/ec4a2265c01c3d504f00159244800a51 to your computer and use it in GitHub Desktop.
Save mariorodriguespt/ec4a2265c01c3d504f00159244800a51 to your computer and use it in GitHub Desktop.
class A extends React.Component{
state = {
scrollToDefinitionID :1
},
stepUP(){
this.setState({
currentStep : 2
})
}
render(){
return (
<Child onClick={ this.stepUP }></Child>
<Child currentDefinition={ this.state.scrollToDefinitionID }></Child>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment