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
};
const dispatch = action('DISPATCH');
storiesOf('FindBar', module)
.add('Default View', () => (
<div style={style}>
<FindBar
commands={commands}
dispatch={action('DISPATCH')}
dispatch={f => f(dispatch)}
/>
</div>
));