Created
June 15, 2017 22:17
-
-
Save alexandrebodin/f470bb293e728be359bf739c9750ca15 to your computer and use it in GitHub Desktop.
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
// no need to load any addon here only register | |
storiesOf('newAPI', module) | |
.add('story', ({ knob , note, state: { counter, setCounter } }, context) => { | |
note('myNotes') | |
return <div onClick={() => setCounter(n => n + 1)}>{knob.text('name', 'Alex')} - {counter} </div> | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment