Skip to content

A todo app to compare React-redux and Redux with just vanilla javascript

License

Notifications You must be signed in to change notification settings

AdithyaBhat17/ReactRedux-vs-ReduxWithVanillaJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redux-TODO Application

This is a TODO App built with redux along with react

How to run ?

clone this repository - git clone https://github.com/AdithyaBhat17/ReactRedux-vs-ReduxWithVanillaJS.git
open index.html and play around :)

Redux

Add task

    store.dispatch({
        type:ADD_TODO,
        todo:{
            id:0,
            name:'Learn Redux',
            complete:false
        }
    })

Remove task

    store.dispatch({
        type: REMOVE_TODO,
        id: 1
    })

Mark a task as COMPLETE

    store.dispatch({
        type: TOGGLE_TODO,
        id: 0
    })

Add a long-term GOAL

    store.dispatch({
        type: ADD_GOAL,
        goal: {
        id: 1,
        name: 'Lose 20 pounds'
        }
    })

Remove a long-term GOAL

    store.dispatch({
        type: REMOVE_GOAL,
        id: 0
    })

About

A todo app to compare React-redux and Redux with just vanilla javascript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages