1.2.0 • Published 3 years ago
@gustav-e/reactive v1.2.0
React library for complex state managment
type Theme = 'Darkmode' | 'Lightmode';
const reactive = new Reactive<Theme>('Darkmode');
function App() {
const [value, setValue, onChange] = useReactive(reactive);
return (
<div>
Theme is: ${value}
<button>Toggle</button>
</div>
);
}