![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
CodingDangerously
更多请关注我的blog:https://phaoer.github.io
展开
-
如何快速构建一个兼容IE9的react应用
前言 按理说都2020了不应该再去谈react的构建这些东西,但是仍有人向我询问这些东西,所以这里细说一下如何最快速的构建一个兼容IE9的react应用 create-react-app create-react-app是一个官方支持的创建 React 单页应用程序的方法。它提供了一个零配置的现代构建设置。 使用 npx或yarn create npx create-react-app demo yarn create react-app demo 安装兼容IE的依赖 ya原创 2020-12-29 17:52:35 · 277 阅读 · 0 评论 -
reactHooks实现一个简易redux
实现redux 顶层 createContext创建共享的上下文 useReducer使用类同redux import React, {createContext, useContext, useReducer} from 'react'; const _STATE = createContext(); const _DISPATCH = createContext(); function App (){ const initStatus = { count: 0 }原创 2020-12-29 17:51:44 · 207 阅读 · 0 评论