react-redux-notifications:Redux供电的通知React组件

时间:2021-03-02 18:41:35
【文件属性】:
文件名称:react-redux-notifications:Redux供电的通知React组件
文件大小:112KB
文件格式:ZIP
更新时间:2021-03-02 18:41:35
TypeScript react-redux-notifications 假设您有一个带有API调用的表单,并且表单提交成功后,您想向用户显示成功消息,或者如果失败,则向他们显示失败消息。 React-redux-notifications是一个由redux中间件驱动的通知系统,它以分离的方式使此超级简单。 设置 // Reducer setup import { reducer as notifications } from 'react-redux-notifications' const todoApp = combineReducers ( { notifications , ... restOfMiddleware , } ) // Middleware setup import { middleware as NotificationMiddleware } from 'reac
【文件预览】:
react-redux-notifications-master
----tsconfig.build.json(761B)
----.gitattributes(11B)
----yarn.lock(257KB)
----.prettierignore(13B)
----src()
--------InlineNotification.tsx(5KB)
--------index.ts(321B)
--------notifications.redux.ts(7KB)
----.vscode()
--------settings.json(36B)
--------tasks.json(311B)
----.npmignore(0B)
----.travis.yml(2KB)
----tsconfig.json(975B)
----LICENSE(1KB)
----jest.config.js(72B)
----.prettierrc(94B)
----tslint.json(284B)
----README.md(3KB)
----.editorconfig(415B)
----tests()
--------placeholder.spec.ts(89B)
----.gitignore(53B)
----style.css(498B)
----package.json(2KB)

网友评论