公告板
版本库
filestore
活动
搜索
登录
main
/
three-asrs
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
#
luxiaotao1123
2024-04-24
1b4a9a7bcde6635ca32ee2a62c7468b2203a93f6
[three-asrs.git]
/
src
/
store
/
index.js
1
2
3
4
5
6
7
8
9
10
import { proxy } from 'valtio'
import { useProxy } from 'valtio/utils'
const store = proxy(
{
text: 'Hello World'
}
);
export const useStore = () => useProxy(store);