![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react
qlj224
这个作者很懒,什么都没留下…
展开
-
react+typescript项目中使用redux
1.项目目录2.新建index.ts文件,初始化一个增强store仓库import { createStore, applyMiddleware, StoreEnhancer, StoreEnhancerStoreCreator, Store } from 'redux';import thunk from 'redux-thunk';import reducer from './reducers/index';// 生成store增强器 const storeEnhancer: Store原创 2021-01-06 22:25:29 · 1000 阅读 · 0 评论 -
react+typescript项目配置CSS模块化
1.配置loadermodule: { rules: [ { test: /\.tsx?$/, loader: 'ts-loader' }, { test: /\.css$/, use: [ { loader: 'style-loader' }, { loader: 'css-loader',原创 2020-12-29 21:55:26 · 1298 阅读 · 0 评论