appbaseio/reactivesearch

View on GitHub
packages/web/examples/withRedux/src/actions/index.js

Summary

Maintainability
A
0 mins
Test Coverage
let nextTodoId = 0;
export const addTodo = text => ({
    type: 'ADD_TODO',
    id: nextTodoId++, // eslint-disable-line
    text,
});

export const setVisibilityFilter = filter => ({
    type: 'SET_VISIBILITY_FILTER',
    filter,
});

export const toggleTodo = id => ({
    type: 'TOGGLE_TODO',
    id,
});