文件名称:re-notif:基于Redux和React的通知中心
文件大小:58KB
文件格式:ZIP
更新时间:2024-06-03 02:41:11
JavaScript
redux-notifications :warning: 先前的软件包re-notif已在NPM上弃用,并重命名为redux-notifications 。 变更列表可以在变更日志中找到。 请相应地更新您的应用程序。 基于 & 的通知中心。 多亏了Redux,通知对象才在Redux Store的State中维护,并由Actions触发。 执行 1.安装 npm install --save redux-notifications 2.接下来,您需要将redux-notifications reducer添加到Redux。 import { createStore , combineReducers } from 'redux' import { reducer as notifReducer } from 'redux-notifications' ; combineReducers (
【文件预览】:
re-notif-master
----.eslintrc(554B)
----.babelrc(65B)
----package.json(2KB)
----LICENSE(1KB)
----src()
--------index.js(157B)
--------reducer.js(489B)
--------actions.js(1017B)
--------styles.css(971B)
--------components()
----.npmignore(79B)
----.gitignore(48B)
----CHANGELOG.md(2KB)
----demo()
--------index.html(997B)
--------demo.js(7KB)
--------webpack.config.js(1KB)
----README.md(4KB)
----yarn.lock(156KB)
----.eslintignore(69B)
----.editorconfig(393B)