Created
July 19, 2018 18:56
-
-
Save mariorodriguespt/2e0262c3fc9e9e4493fcb0c4d3b321b8 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
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