[英]How to do React - Redux connection?
I am taking a course "React - The Complete Guide (incl Hooks, React Router, Redux)" on Udemy .我正在Udemy 上学习“React - 完整指南(包括 Hooks、React Router、Redux)”课程。 I have exactly followed the steps by Maximilian on the lecture, but getting an error:
我完全按照 Maximilian 在讲座中的步骤进行操作,但出现错误:
Failed to compile.编译失败。
(webpack)/buildin/harmony-module.js
Error: UNKNOWN: unknown error, read
I have posted my project on: https://github.com/AswinTimalsina/reactBurgerProject/tree/redux-global-state我已将我的项目发布在: https://github.com/AswinTimalsina/reactBurgerProject/tree/redux-global-state
Hello you have to first install redux您好,您必须先安装 redux
npm install react-redux
or或者
yarn add react-redux
then import it in your app.js like然后将其导入您的 app.js 中,例如
import React from 'react'
import ReactDOM from 'react-dom'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.