8000 GitHub - inec/codeboxreact1
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

inec/codeboxreact1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codeboxreact1

 if (action.type === "LOGIN") {
    return {
      login: true
    };
  } else {
    return state;
  }

Use const for Action Types

const LOGIN = 'LOGIN';
const LOGOUT = 'LOGOUT';

Register a Store Listener

function sayHi() {
  count+=1;
}
store.subscribe(sayHi);
const rootReducer = Redux.combineReducers({
  count: counterReducer,
  auth: authReducer
});
case ADD_NOTE:
      return action.text;
      // change code below this line
  return {
    type: ADD_NOTE,
    text: note
  };
  // change code above this line

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0