React Design Patterns Documentation - v0.0.3
    Preparing search index...
    • Function to create an observable pattern for state management

      Type Parameters

      • T

      Returns {
          subscribe: (observer: (value: T) => void) => { unsubscribe: () => void };
          notify: (value: T) => void;
      }

      Observable object with subscribe and notify methods