Reactive Singleton - Live Demos Here are some live demos, feel free to go through and explore them: Using Typescript - CodeSandBox Using Javascript (ES6) - CodeSandBox Creating Theme Controller (TS) - CodeSandBox Message App (TS) - CodeSandBox