2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Get State from the Redux Store
|
|
|
|
---
|
2019-07-24 00:59:27 -07:00
|
|
|
# Get State from the Redux Store
|
|
|
|
|
|
|
|
---
|
|
|
|
## Problem Explanation
|
2018-10-12 15:37:13 -04:00
|
|
|
|
|
|
|
Retrieve data from store by using `getState()` method.
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
## Solutions
|
|
|
|
|
|
|
|
<details><summary>Solution 1 (Click to Show/Hide)</summary>
|
|
|
|
|
2019-05-15 10:08:19 -07:00
|
|
|
```jsx
|
2018-10-12 15:37:13 -04:00
|
|
|
let currentState = store.getState();
|
|
|
|
```
|
2019-07-24 00:59:27 -07:00
|
|
|
</details>
|