react-loading-func

react版本loading函数,通过loading.show()和loading.hide()来控制loading的显示和隐藏

Usage no npm install needed!

<script type="module">
  import reactLoadingFunc from 'https://cdn.skypack.dev/react-loading-func';
</script>

README

react-loading-func

react版本loading函数,通过loading.show()和loading.hide()来控制loading的显示和隐藏

install

npm install react-loading-func --save

Development

npm install
npm start

Example

http://github.dxcweb.com/react-loading-func/

Usage

loading.show()
loading.hide()

API

loading.show(title,options)

options

options={
    ratio:1
}