An open API service indexing awesome lists of open source software.

https://github.com/nitor-infotech-oss/rxjs-useselector

Use Observable as selector in React Hooks
https://github.com/nitor-infotech-oss/rxjs-useselector

Last synced: 6 months ago
JSON representation

Use Observable as selector in React Hooks

Awesome Lists containing this project

README

          

# useSelector Hook for RxJS Observables

Small library to use RxJs observables with [React Hooks](https://reactjs.org/docs/hooks-intro.html) in [React](https://reactjs.org/) Functional Components.

# Usage

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

export const User = () => {
const user = useSelector(
.currentUser, {}
);
}
```

For detailed usage refer - [Example Application](https://github.com/nitor-infotech-oss/akita-react-hooks-ts)