Simple package to use Socket.io with React hooks.

Related tags

socket-io react-hooks
Overview

use-socket.io

Simple package to use Socket.io with React hooks.

Installation

# npm
npm install @casper124578/use-socket.io

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

Usage

{/* my app here */} ); } ">
// src/App.tsx

import { SocketProvider } from "@casper124578/use-socket.io";

export default function App() {
  return (
    <SocketProvider uri="http://localhost:3030" options={{}}>
      {/* my app here */}
    </SocketProvider>
  );
}
Owner
Casper
16y/o programmer and student - Frontend focused web dev. Coded Today (2021-10-13): 0 secs
Casper
React Native APIs turned into React Hooks for use in functional React components

React Native Hooks React Native APIs turned into React Hooks allowing you to access asynchronous APIs directly in your functional components. Note: Yo

React Native Community 2.6k Oct 17, 2021
Essential React custom hooks ⚓ to super charge your components!

Essential React custom hooks ⚓ to super charge your components!

Bhargav Ponnapalli 1.9k Oct 16, 2021
Simple package to use Socket.io with React hooks.

Simple package to use Socket.io with React hooks.

Casper 1 Oct 11, 2021
Learn Advanced React Hooks workshop

Learn the more advanced React hooks and different patterns to enable great developer APIs for custom hooks.

Kent C. Dodds 1.4k Oct 21, 2021
Learn React Hooks! 🎣 ⚛

Learn the ins and outs of React Hooks. I will take you on a deep dive into React Hooks, and show you what you need to know to start using them in your applications right away.

Kent C. Dodds 1.9k Oct 19, 2021
React custom hooks for async functions with abortability and composability

react-hooks-async React custom hooks for async functions with abortability and composability Introduction JavaScript promises are not abortable/cancel

Daishi Kato 493 Oct 14, 2021
Understand how React-hook really behaves, once and for all!

Understand how React-hook really behaves, once and for all!

null 63 Oct 4, 2021
Simple global state for React with Hooks API without Context API

react-hooks-global-state Simple global state for React with Hooks API without Context API Introduction This is a library to provide a global state wit

Daishi Kato 725 Oct 6, 2021
Delightful data fetching for React.

Asynchronous dynamic data at scale. Performance, data integrity, and typing for REST, proto, GraphQL, websockets and more.

Coinbase 1.4k Oct 11, 2021
Redux-Toolkit example with React Hooks CRUD Application, Axios, Rest API, Bootstrap

Redux-Toolkit example with React Hooks CRUD Application, Axios, Rest API, Bootstrap

null 7 Oct 11, 2021
React Hooks for Firebase.

React Firebase Hooks A set of reusable React Hooks for Firebase. Official support for Hooks was added to React Native in v0.59.0. React Firebase Hooks

CS Frequency 2.1k Oct 13, 2021
React Redux binding with React Hooks and Proxy

There are several projects related to this repo. Here's the index of those. reactive-react-redux v5-alpha (this repo): This has an experimental react-

Daishi Kato 502 Oct 6, 2021
Testing hooks with Jest

Jooks (Jest ❤ + Hooks ????) If you're going through hell testing React Hooks, keep going. (Churchill) What are Custom React Hooks React Hooks are a ne

Antoine Jaussoin 74 Oct 9, 2021
Dependency injection for React hooks

React Facade An experimental library that uses Proxy and TypeScript to create a strongly typed facade for your React hooks. Dependency inversion betwe

Gabe Scholz 59 Oct 13, 2021
A set of reusable React Hooks.

React Hooks Lib · A set of reusable React Hooks. Hooks are a new addition in React 16.8. They let you use state and other React features without writi

Victor 501 Oct 2, 2021
[OUTDATED]Ponyfill for the React Hooks API (Support RN)

react-with-hooks Polyfill and ponyfill for the React Hooks API. Works on React Native! ⚠️ The code on master branch is still WIP. Install $ npm i reac

Wei Zhu 153 May 7, 2021
🔥 React hooks for Socket.io, SEE, WebSockets and more to come

React hooks for handling server-push technologies: use-socketio for Socket.io use-server-sent-events for Server Sent Events use-websockets for Websock

Marvin Frachet 190 Sep 20, 2021
🔄 A collection of React hooks for reactively managing localStorage.

react-localstorage-hooks A collection of React hooks for reactively managing localStorage. Installation npm i react-localstorage-hooks Documentation

Akash Hamirwasia 7 Jul 12, 2021
:tada: React Universal Hooks : just use****** everywhere (Functional or Class Component). Support React DevTools!

react-universal-hooks React Universal Hooks : just use****** everywhere. Support React >= 16.8.0 Installation Using npm: $ npm install --save react-un

Salvatore Ravidà 160 Oct 5, 2021