Map State to Props
Solutions
Solution 1 (Click to Show/Hide)
const state = [];
// change code below this line
const mapStateToProps = (state)=>{
return {
messages: state
}
}
const state = [];
// change code below this line
const mapStateToProps = (state)=>{
return {
messages: state
}
}