世界上最伟大的投资就是投资自己的教育
-
可以简写成这样:
import { createStore, applyMiddleware } from "redux"; import logger from "redux-logger"; import thunk from "redux-thunk"; import { composeWithDevTools } from "redux-devtools-extension"; import rootReducer from "../reducers"; const store = createStore( rootReducer, process.env.NODE_ENV === "production" ? applyMiddleware(thunk) : composeWithDevTools(applyMiddleware(thunk, logger)) ); export default store;
-
windows 可以用 bcryptjs,完全用 javascript 实现的,无关平台。用法跟效果同 bcrypt。
-
我发现这样写也是 ok 的,不用 bindActionCreators 也能解构出来
import * as types from './actions'; ... const { increment, decrement } = this.props; ... export default connect(mapStateToProps, types)(App);
© 汕尾市求知科技有限公司 | Rails365 Gitlab | 知乎 | b 站 | csdn
粤公网安备 44152102000088号 | 粤ICP备19038915号
Top