withObservables:HOC(高阶组件),用于将RxJS Observables连接到React组件

时间:2021-05-01 07:30:56
【文件属性】:
文件名称:withObservables:HOC(高阶组件),用于将RxJS Observables连接到React组件
文件大小:138KB
文件格式:ZIP
更新时间:2021-05-01 07:30:56
react rxjs observable hoc JavaScript withObservables 甲,用于连接RxJS到React的组分。 例子 (摘自 ) const Post = ( { post , comments } ) => ( < article> < h1> { post . name } < / h1 > < p> { post . body } < / p > < h2> Comments < / h2 > { comments . map ( comment => < EnhancedComment xss=removed xss=removed> ) } < / article > ) const enhance = withObservables ( [ 'post' ] , ( { post } ) =>
【文件预览】:
withObservables-master
----.gitignore(40B)
----README.md(4KB)
----flow-typed()
--------npm()
----CHANGELOG.md(1KB)
----.github()
--------workflows()
----rollup.config.js(332B)
----.prettierrc(73B)
----LICENSE(1KB)
----__tests__()
--------withObservable.test.js(471B)
--------typescript()
----.eslintrc.yml(1KB)
----.babelrc.js(759B)
----PUBLISHING.md(144B)
----package.json(3KB)
----dist()
--------with-observables.cjs.js(12KB)
--------with-observables.esm.js(12KB)
--------with-observables.esm.js.flow(33B)
--------with-observables.cjs.js.flow(33B)
----src()
--------garbageCollector.js(1KB)
--------index.js(11KB)
----.flowconfig(297B)
----jest.config.js(510B)
----index.d.ts(4KB)
----.eslintignore(20B)
----yarn.lock(211KB)

网友评论