course content

Course Content

Introduction to Redux

Setting Up the ApplicationSetting Up the Application

We will create a new project using the react-redux template. Open the console and cd into an appropriate location, then create a new project using the command: npx create-react-app post-app --template redux.

Now that the project is set up, we need to remove the default counter application and delete everything in the src folder.

We will create a new index.js file containing the following base code:

Since we are also importing a store, we will create a new store.js in a new app folder:

Now we can run the app to see a 'Hello World' screen:

However, this is only a setup, there's more to do!

question-icon

Which component is the entry point of this React application?

Select the correct answer

Everything was clear?

Section 4. Chapter 2