Skip to content

Instantly share code, notes, and snippets.

@alexandrebodin
Created June 15, 2017 22:17
Show Gist options
  • Save alexandrebodin/f470bb293e728be359bf739c9750ca15 to your computer and use it in GitHub Desktop.
Save alexandrebodin/f470bb293e728be359bf739c9750ca15 to your computer and use it in GitHub Desktop.
// 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