Plugins: Reducers and Actions - Working

This commit is contained in:
Belen Curcio
2017-03-30 11:10:11 -03:00
parent 659c63e5cb
commit ab6f455ec7
5 changed files with 44 additions and 29 deletions
@@ -3,7 +3,6 @@ import styles from './style.css';
export default (props) => (
<div className={styles.Respect} key={props.key}>
{console.log(props)}
<button>Respect</button>
</div>
);
@@ -4,7 +4,7 @@ const initialState = Map({
clicked: false
});
export default function reducer (state = initialState, action) {
export function respect (state = initialState, action) {
switch (action.type) {
default:
return state;