0

I forgot to use redux-typescript template while creating react app. That is, I created a react app with command:

npx create-react-app my-app --template typescript

instead of

npx create-react-app my-app --template redux-typescript

Now I have built a lot of UI and was to add redux layer. But now I realized that I should have created app with redux-typescript template. What should I do now? Will installing @reduxjs/toolkit and redux have similar effect? That is will running below commands now will have same effect of creating app with redux-typescript template?

yarn add @reduxjs/toolkit
yarn add redux

Official doc says:

The recommended way to start new apps with React and Redux is by using the official Redux+JS template or Redux+TS template for Create React App, which takes advantage of Redux Toolkit and React Redux's integration with React components.

Does redux-typescript template of create-react-app does something more than installing installing @reduxjs/toolkit and redux?

1 Answer 1

1

react-redux docs has lists two ways to for installation,

  1. Using create-react-app

    npx create-react-app my-app --template redux-typescript

  2. An Existing React App

    yarn add react-redux

    You'll also need to install Redux and set up a Redux store in your app.

I guess later is what I was looking for. Unfortunately, neither redux-core installation and redux-toolkit installation web pages says it so clear.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.