Skip to content

darron-haworth/techstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Example alt tag

#JS Playground URL https://stephengrider.github.io/JSPlaygrounds/

#Test code


const reducer = (state = [], action) => { 
  if(action.type === 'split_string') { 
    return action.payload.split(''); 
  } else if (action.type === 'add_character') { 
    return [ ...state, action.payload];

  }  
  return state; 
} 

const store = Redux.createStore(reducer);

store.getState();

const action = { type: 'split_string', payload: 'asdf' };

store.dispatch(action); store.getState();

const action2 = { type: 'add_character', payload: 'a' }

store.dispatch(action2); store.getState()

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors