Created
July 16, 2018 15:12
-
-
Save stephencookdev/9e0af114386f730a4ea365d0394dd41a to your computer and use it in GitHub Desktop.
`SwitchWithSlide` example - render
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
render() { | |
const { | |
prevChild, | |
curChild, | |
childPosition, | |
animationCallback, | |
} = this.state; | |
return ( | |
<Slider | |
position={childPosition} | |
animationCallback={animationCallback} | |
> | |
{prevChild || curChild} | |
</Slider> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment