18 lines
299 B
TypeScript
18 lines
299 B
TypeScript
import { FunctionComponent, useEffect } from 'react';
|
|
|
|
import loading from './loading';
|
|
|
|
const Loading: FunctionComponent = () => {
|
|
useEffect(() => {
|
|
loading.show();
|
|
|
|
return () => {
|
|
loading.hide();
|
|
};
|
|
}, []);
|
|
|
|
return null;
|
|
};
|
|
|
|
export default Loading;
|