Skip to content

Instantly share code, notes, and snippets.

@mattbajorek
Created March 26, 2020 02:43
Show Gist options
  • Save mattbajorek/0bb5899f5cf11f6764ff044bfe27c9c1 to your computer and use it in GitHub Desktop.
Save mattbajorek/0bb5899f5cf11f6764ff044bfe27c9c1 to your computer and use it in GitHub Desktop.
todos-redux-to-react-sweet-state todos store
import { createStore } from 'react-sweet-state'
import actions from './todos.actions'
const initialState = []
const todosStore = createStore({ initialState, actions })
export default todosStore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment