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