React
Be sentimental
这个作者很懒,什么都没留下…
展开
-
引入React-devtools
引入React-devtools store.js里面 1.安装Redux DevTools插件 import {createStore,applyMiddleware,combineReducers} from ‘redux’ 2.import {composeWithDevTools} from ‘redux-devtools-extension’ import countReducer from ‘./reducers/count’ import thunk from ‘redux-thunk’ im原创 2021-03-01 08:59:08 · 129 阅读 · 0 评论 -
React使用styled-components进行样式初始化(reset.css)
第一步先安装 styled-components 第二步创建style.js(在src目录下) import { createGlobalStyle } from ‘styled-components’; export const GlobalStyle = createGlobalStylehtml, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym,原创 2021-02-28 15:54:56 · 365 阅读 · 0 评论