react-loader-component:一个React高阶组件,可调度动作并呈现loadingerror状态

时间:2021-02-14 07:24:42
【文件属性】:
文件名称:react-loader-component:一个React高阶组件,可调度动作并呈现loadingerror状态
文件大小:224KB
文件格式:ZIP
更新时间:2021-02-14 07:24:42
react redux nodejs redux-api JavaScript React加载器组件 一个React高阶组件,它会在安装时触发一些Promise,并显示一个加载组件,直到Promise完成为止。 用法 import ReactLoader from ' react-loader-component ' ; const MyComponent = ReactLoader ({ loadingComponent : props => (< p>Loading), errorComponent : props => (< p>There was an error: { JSON . stringify ( props . data ) } ), load : ( props ) => { // Do some async loading here // Return a Pr
【文件预览】:
react-loader-component-master
----codecov.yml(62B)
----.eslintrc(284B)
----.github()
--------FUNDING.yml(61B)
--------workflows()
----stories()
--------example.swapi.stories.js(2KB)
--------index.stories.js(2KB)
----src()
--------react-loader.js(4KB)
----.babelrc(1KB)
----.npmignore(42B)
----.storybook()
--------main.js(407B)
----LICENSE(1KB)
----README.md(4KB)
----.editorconfig(548B)
----tests()
--------test-react-loader.js(13KB)
--------util()
----.gitignore(91B)
----CHANGELOG.md(575B)
----.eslintignore(41B)
----package-lock.json(874KB)
----package.json(3KB)
----.nycrc(50B)

网友评论