Add react loading component
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import React, { FunctionComponent, useEffect } from 'react';
|
||||
|
||||
import loading from './loading';
|
||||
|
||||
const Loading: FunctionComponent = () => {
|
||||
useEffect(() => {
|
||||
loading.show();
|
||||
|
||||
return () => {
|
||||
loading.hide();
|
||||
};
|
||||
}, []);
|
||||
|
||||
return <></>;
|
||||
};
|
||||
|
||||
export default Loading;
|
||||
Reference in New Issue
Block a user