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
- Host: GitHub
- URL: https://github.com/nitor-infotech-oss/rxjs-useselector
- Owner: nitor-infotech-oss
- Created: 2019-07-08T11:23:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T03:55:30.000Z (almost 3 years ago)
- Last Synced: 2025-02-01T09:22:23.723Z (8 months ago)
- Language: JavaScript
- Size: 658 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 27
-
Metadata Files:
- Readme: README.md
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)