Tinkoff/tramvai

Mistype in example

Closed this issue · 2 comments

Mistype at main project page - tramvai.dev

const incrementAction = createEvent('increment');
const countReducer = createReducer('count', 0)  .on(increment, (state) => state + 1);
const Component = () => {  const count = useSelector('count', (state) => state); 
const increment = useActions(incrementAction);

.on(increment, -> .on(incrementAction ,

Thank you for the report!

Will fix it in closest releases)