文件名称:re-load:用于加载事物的React组件
文件大小:20KB
文件格式:ZIP
更新时间:2024-06-01 13:51:32
JavaScript
重新加载 重新加载是用于处理(伪)异步加载状态的React组件。 例子 import Reload from '@matthamlin/re-load' let src = 'https://my-cool-img-resource.com/img.jpg' render ( < Reload xss=removed xss=removed xss=removed> new Promise ( ( resolve , reject ) => { let img = new Image ( ) img . onload = ( ) => resolve ( img ) img . onerror = ( ) => reject ( 'Failed to load the ima
【文件预览】:
re-load-master
----package.json(528B)
----dist()
--------index.js(4KB)
--------index.mjs(806B)
----src()
--------index.js(806B)
----.gitignore(13B)
----README.md(1KB)
----yarn.lock(68KB)
----babel.config.js(197B)