@no-ui/loader
v0.2.3
Published
@no-ui/loader is loader component for react.
Downloads
2
Maintainers
Readme
@no-ui/loader
Installation
npm i @no-ui/loader
Usage
import { boxLoader } from '@no-ui/loader';
function LoaderExample() {
const onClick = () => {
boxLoader.show('데이터를 가져오는 중입니다...');
setTimeout(() => boxLoader.hide(), 2000);
};
return (
<div>
<button onClick={onClick}>click me</button>
</div>
);
}