Created
January 29, 2018 15:52
-
-
Save anonymous/47ae63d615ca7afc1c0636d64ca38f12 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
| import React from 'react'; | |
| const Step = (leftAction, rightAction, { text, leftBtn, rightBtn }) => { | |
| return ( | |
| <div> | |
| <div> | |
| { text } | |
| </div> | |
| <div> | |
| <span onClick={ leftAction } > | |
| { leftBtn.text } | |
| </span> | |
| <span onClick={ rightAction }> | |
| { rightBtn.text } | |
| </span> | |
| </div> | |
| </div> | |
| ); | |
| }; | |
| export default Step; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment