mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
Plugins: Reducers and Actions - Working
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user