This is a simple state manager based on rxjs.
/* Creates a atomic store based on BehaviorSubject from 'rxjs' */
const count$ = atom(0);
/* Subscribe to the atomic store and listen for events */
count$.subscribe(value => {
// Do application logic whenever the store changes
document.getElementById("counter").innerText = `Count : ${value}`;
});
count$.get()
// count$.set(<new-value>);
count$.set(count$.get() + 1);
- https://rxjs.dev/api/index/class/BehaviorSubject
- https://www.learnrxjs.io/learn-rxjs/subjects/behaviorsubject
pnpm install
pnpm build
pnpm test
Please refer the following links :
- Framework Agnostic Architecture
- Portal UI Revamp
- Microfrontend Architecture
- Metrics Observability Platform
TBD
TBD
TBD