1.2.0 • Published 3 years ago

@gustav-e/reactive v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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>
	);
}
1.2.0

3 years ago

0.0.1

3 years ago