Skip to content

About

Use Observable as selector in React Hooks

Resources

Stars

2 stars

Watchers

0 watching

Forks

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

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages