--- title: Map State to Props --- ## Map State to Props ### Solution
Spoiler! ```jsx const state = []; // change code below this line const mapStateToProps = (state)=>{ return { messages: state } } ```