Skip to content

nitor-infotech-oss/rxjs-useSelector

Repository files navigation

useSelector Hook for RxJS Observables

Small library to use RxJs observables with React Hooks in React Functional Components.

Usage

  import React from 'react';
  import useSelector from 'rxjs-use-selector';

  export const User = () => {
    const user = useSelector(
      <observable-provider>.currentUser, {}
    );
  }

For detailed usage refer - Example Application

About

Use Observable as selector in React Hooks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •