2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Create a Redux Store
|
|
|
|
---
|
2019-07-24 00:59:27 -07:00
|
|
|
# Create a Redux Store
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
---
|
|
|
|
## Problem Explanation
|
2018-10-12 15:37:13 -04:00
|
|
|
There are three parts to this challenge.
|
|
|
|
|
|
|
|
1. Declare a `store` variable.
|
|
|
|
2. Assign it to the `createStore()` method.
|
|
|
|
3. Pass in the `reducer` as an argument.
|
|
|
|
|
|
|
|
### Step 1. Declare a variable.
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
```
|
2018-10-12 15:37:13 -04:00
|
|
|
const yourVariableName;
|
|
|
|
```
|
|
|
|
|
|
|
|
### Step 2. Assign your variable to a method.
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
const yourVariableName = yourMethodName();
|
2019-07-24 00:59:27 -07:00
|
|
|
|
2018-10-12 15:37:13 -04:00
|
|
|
|
|
|
|
Hint: Keep in mind that the `createStore()` method is available from the Redux object. For example: `Redux.createStore()`
|
|
|
|
|
|
|
|
### Step 3. Pass in an argument to your method.
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
const yourVariableName = yourMethodName(yourArgumentName);
|
|
|
|
```
|
|
|
|
|
|
|
|
Good luck!
|