react-use-action-cable-ts
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "react-use-action-cable-ts", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Hooks to easily use Rails Action Cable in your React application", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
# React Use Action Cable | ||
Hooks to use Rails Action Cable in your React (Native) application. | ||
Hooks to use Rails Action Cable in your React application. | ||
## Installation | ||
```bash | ||
npm install @aersoftware/react-use-action-cable --save | ||
npm i react-use-action-cable-ts | ||
``` | ||
@@ -15,3 +15,3 @@ | ||
import React, { useEffect } from 'react'; | ||
import { useActionCable, useChannel } from '@aersoftware/react-use-action-cable'; | ||
import { useActionCable, useChannel } from 'react-use-action-cable-ts'; | ||
@@ -18,0 +18,0 @@ export default function index() { |
10313