12 lines
212 B
TypeScript
12 lines
212 B
TypeScript
import { useState } from 'react';
|
|
|
|
const useGlobalState = () => {
|
|
const [globalState, setGlobalState] = useState<any>({});
|
|
return {
|
|
globalState,
|
|
setGlobalState
|
|
};
|
|
};
|
|
|
|
export default useGlobalState;
|