#
luxiaotao1123
2024-04-23 1227bd8858e552ddae3f9cca3e4bdf0996f002c5
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);