@vanyamate/sec-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

SEC React

Support for sec

npm i @vanyamate/sec-react
// /model/todo/todo.model.ts
import { store } from '@vanyamate/sec';


export const todoLoading = store(false);
import { useStore } from '@vanyamate/sec-react';

// any react component
const loading = useStore(todoLoading);

if (loading) {
    return <Loader/>;
}

return (
    <Component/>
);

Readme

Keywords

Package Sidebar

Install

npm i @vanyamate/sec-react

Weekly Downloads

5

Version

0.0.6

License

ISC

Unpacked Size

2.19 kB

Total Files

6

Last publish

Collaborators

  • vanyamate