Introduction

WhatToUseMobile WhatToUseDesktop

Reactables provide one core API for handling a wide range of state management use-cases.

It leverages RxJS and reactive/declarative patterns to allow more time to focus on what you want to achieve in your buisness logic and save time on how it is implemented.

Installation

Requires RxJS 6 or above. If not already installed, run npm i rxjs

npm i @reactables/core

Create your first Reactable!

import { RxBuilder } from '@reactables/core';

export const RxToggle = (initialState = false) =>
  RxBuilder({
    initialState,
    reducers: {
      toggleOn: () => true,
      toggleOff: () => false,
      toggle: (state) => !state,
    },
  });

Bind to the view!