没有合适的资源?快使用搜索试试~ 我知道了~
tracked-redux:自动追踪的Redux
共55个文件
js:24个
md:5个
png:3个
需积分: 5 0 下载量 31 浏览量
2021-05-13
05:12:08
上传
评论
收藏 791KB ZIP 举报
温馨提示
跟踪的Redux 该库提供的自动跟踪版本。 import { createStore } from 'tracked-redux' ; const store = createStore ( ( state = { todos : [ ] } , action ) => { if ( action . type === 'ADD_TODO' ) { return { todos : [ ... state . todos , action . todo ] } ; } return state ; } ) ; class Example extends Component { get todos ( ) { return store . getState ( ) . todos ; } @ action addTodo ( todo ) {
资源推荐
资源详情
资源评论
收起资源包目录
tracked-redux-master.zip (55个子文件)
tracked-redux-master
.ember-cli 280B
ember-cli-build.js 596B
config
ember-try.js 1KB
environment.js 90B
docs
assets
enabling-custom-formatters.png 371KB
before-custom-formatters.png 196KB
after-custom-formatters.png 64KB
.watchmanconfig 37B
package.json 3KB
.github
workflows
ci.yml 2KB
tests
test-helper.js 228B
index.html 1KB
unit
basic-test.js 10KB
object-test.js 2KB
array-test.js 3KB
.gitkeep 0B
dummy
config
targets.js 307B
optional-features.json 154B
environment.js 1KB
app
reducers
todos.js 638B
index.js 196B
visibilityFilter.js 285B
templates
application.hbs 9B
routes
.gitkeep 0B
index.html 684B
components
todos.js 568B
todos.hbs 363B
styles
app.css 0B
app.js 384B
services
redux.js 472B
actions
index.js 406B
router.js 236B
public
robots.txt 51B
integration
.gitkeep 0B
helpers
collection-reactivity.js 2KB
reactivity.js 867B
RELEASE.md 2KB
testem.js 589B
CONTRIBUTING.md 651B
src
-private
create-store.ts 1KB
tracking.ts 1KB
proxy.js 6KB
index.ts 89B
.eslintrc.js 1KB
.template-lintrc.js 58B
tsconfig.json 279B
LICENSE.md 1KB
.gitignore 377B
CHANGELOG.md 1KB
.dependabot
config.yml 306B
README.md 3KB
yarn.lock 536KB
.eslintignore 248B
ember-addon-main.js 72B
.editorconfig 367B
共 55 条
- 1
资源评论
绘画窝
- 粉丝: 21
- 资源: 4715
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功