Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // view
- this.props.displayedMass.map(function (el, index) {
- return <Message asd={el.text} key={index}/>;
- })
- //reducer
- const defaultState = [];
- function reducer(state = defaultState,action){
- let newState = state.concat(action._data);
- return newState;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement