-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

React Interview Guide
By :

In Chapter 6, we covered various topics about Redux and its workflow to build React web applications, based on a Redux state management solution. To reduce the boilerplate code involved with Redux logic, the Redux team recommends using RTK to simplify many common use cases, apply best practices, and prevent common mistakes.
If you create a project from scratch, doing so using the Redux and TypeScript template for Vite is one of the suggested approaches from the Redux team. So, we will use the same approach to build the project in this section. In this project, we will build an e-commerce application, named One Stop Electronics, where one can buy electronic devices.
The following degit
project scaffolding command is helpful for creating a project structure based on RTK:
npx degit reduxjs/redux-templates/packages/vite-template-redux onestop-electronics
This template creates a project based on TypeScript (.tsx
or .ts
files), with the...