This commit is contained in:
jialin
2024-05-14 15:23:56 +08:00
commit 72a53424fa
59 changed files with 13511 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
// 全局共享数据示例
import { DEFAULT_NAME } from '@/constants';
import { useState } from 'react';
const useUser = () => {
const [name, setName] = useState<string>(DEFAULT_NAME);
return {
name,
setName,
};
};
export default useUser;