5 ms·
are there any plans for making the state management exportable? in react state's bound to the component, but in solid-js we can define it outside the component
by siduck 3y ago
are there any plans for making the state management exportable? in react state's bound to the component, but in solid-js we can define it outside the component and export it, and components from other files can easily use it :D
like
export const [counter, setCounter] = createSignal(0)
you can probably look at js proxies