polestar-ui-kit
Version:
## Install
27 lines (20 loc) • 492 B
Markdown
withLoading component example:
```jsx static
import React from 'react';
import { withLoading } from 'polestar-ui-kit';
class MyComponent extends React.Component {
save = () => {
this.props.setLoading();
// request 요청 및 응답
this.props.setLoading(false);
}
render() {
return (
<div
onClick={this.save}
/>
);
}
}
export default withLoading(MyComponent);
```