@vanyamate/sec-react
v0.0.4
Published
Support for react
Downloads
10
Readme
SEC React
Support for sec
// /model/todo/todo.model.ts
import { store } from '@vanyamate/sec';
export const todoLoading = store(false);
// any react component
const loading = useStore(todoLoading);
if (loading) {
return <Loader/>;
}
return (
<Component/>
);