@nitor-infotech/rxjs-use-selector
v0.1.1
Published
useSelector react hook for RxJS observables
Downloads
14
Readme
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