This is a TODO App built with redux along with react
clone this repository - git clone https://github.com/AdithyaBhat17/ReactRedux-vs-ReduxWithVanillaJS.git
open index.html
and play around :)
store.dispatch({
type:ADD_TODO,
todo:{
id:0,
name:'Learn Redux',
complete:false
}
})
store.dispatch({
type: REMOVE_TODO,
id: 1
})
store.dispatch({
type: TOGGLE_TODO,
id: 0
})
store.dispatch({
type: ADD_GOAL,
goal: {
id: 1,
name: 'Lose 20 pounds'
}
})
store.dispatch({
type: REMOVE_GOAL,
id: 0
})