@auraxy/react-loading
v1.0.0
Published
A loading component
Downloads
4
Readme
@auraxy/react-loading
pkg.module supported
, which means that you can apply tree-shaking in you project
A loading component
Run Example
Your can see the usage by run the example of the module, here is the step:
- Clone the library
git clone
- Go to the directory
cd your-module-directory
- Install npm dependencies
npm i
(use taobao registry:npm i --registry=http://registry.npm.taobao.org
) - Open service
npm run dev
- See the example(usually is
http://127.0.0.1/examples/test.html
) in your browser
Installation
npm i -S @auraxy/react-loading
Global name
ReactLoading
Interface
See in index.d.ts
Usage
import * as ReactLoading from '@auraxy/react-loading'
You can change the color or size of this component by css
QA
- Error
Error: spawn node-sass ENOENT
You may need install node-sass globally,
npm i -g node-sass