Files
2019-05-09 18:57:06 +05:30

22 lines
256 B
Markdown

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