Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/casperiv0/use-socket.io

Simple package to use Socket.io with React hooks.
https://github.com/casperiv0/use-socket.io

react-hooks socket-io

Last synced: 2 months ago
JSON representation

Simple package to use Socket.io with React hooks.

Awesome Lists containing this project

README

        

# use-socket.io

Simple package to use Socket.io with React hooks.

## Installation

```bash
# npm
npm install @casperiv/use-socket.io

# Yarn
yarn add @casperiv/use-socket.io

# pnpm
pnpm install @casperiv/use-socket.io
```

## Usage

```tsx
// src/App.tsx
import { SocketProvider } from "@casperiv/use-socket.io";

export default function App() {
return (



);
}
```

## Documentation

[You can view documentation here](https://github.com/casperiv0/use-socket.io/blob/main/docs/README.md)