Files
freeCodeCamp/guide/english/certifications/front-end-libraries/redux/create-a-redux-store/index.md
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

679 B

title
title
Create a Redux Store

Create a Redux Store


Problem Explanation

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.

const yourVariableName;

Step 2. Assign your variable to a method.

const yourVariableName = yourMethodName();


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!