simulate redux-thunk

This commit is contained in:
Cássio Zen 2016-07-08 07:31:35 -03:00
parent fd8038465e
commit a0fbf9b767

View File

@ -18,12 +18,14 @@ const style = {
margin: 20 margin: 20
}; };
const dispatch = action('DISPATCH');
storiesOf('FindBar', module) storiesOf('FindBar', module)
.add('Default View', () => ( .add('Default View', () => (
<div style={style}> <div style={style}>
<FindBar <FindBar
commands={commands} commands={commands}
dispatch={action('DISPATCH')} dispatch={f => f(dispatch)}
/> />
</div> </div>
)); ));