rxjs-react:使您的react-component与rxjs变得React

时间:2021-05-13 18:24:19
【文件属性】:
文件名称:rxjs-react:使您的react-component与rxjs变得React
文件大小:851KB
文件格式:ZIP
更新时间:2021-05-13 18:24:19
react rxjs observable reactive-programming JavaScript npm install rxjs-react // ES2015 import { reactive } from 'rxjs-react' // Commonjs const { reactive } = require ( 'rxjs-react' ) 目录 :backhand_index_pointing_down: 动机 React Suspense是react v16.x一个很棒的新功能,它支持在不使用async/await语法的情况下在render function编写异步代码, render function data-fetching , loading和code-spliting变得更加容易和简单。 如果我们走得更远怎么办? 将observable( rxjs )放在render function 。 import React from 'react' import { render } from 'react-dom'
【文件预览】:
rxjs-react-master
----.gitignore(62B)
----.babelrc(194B)
----package.json(2KB)
----src()
--------components()
--------shared.js(3KB)
--------spring()
--------index.js(99B)
--------operators()
--------reactive.js(3KB)
----webpack.config.js(1KB)
----.travis.yml(37B)
----LICENSE(1KB)
----spring.js(40B)
----doc()
--------api.md(9KB)
----index.js(39B)
----__tests__()
--------combine.js(3KB)
--------operators.js(5KB)
--------reactive.js(4KB)
----README.md(10KB)
----example()
--------src()
--------dist()
--------page()
----operators.js(43B)
----.npmignore(106B)
----components.js(44B)

网友评论