All Projects → tylucaskelley → Lib React Hooks

tylucaskelley / Lib React Hooks

Licence: other
General purpose React hooks library ⚛️

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Lib React Hooks

Foxy
A fast, reliable, and secure NPM/Yarn bridge for Composer
Stars: ✭ 137 (-5.52%)
Mutual labels:  npm
Book
《现代化前端工程师权威指南》https://guoyongfeng.github.io/book/
Stars: ✭ 141 (-2.76%)
Mutual labels:  npm
Modern Wasm Starter
🛸 Run C++ code on web and create blazingly fast websites! A starter template to easily create WebAssembly packages using type-safe C++ bindings with automatic TypeScript declarations.
Stars: ✭ 140 (-3.45%)
Mutual labels:  npm
React Code Blocks
React code blocks and code snippet components
Stars: ✭ 135 (-6.9%)
Mutual labels:  mdx
Cpf
🇧🇷 Validate, generate and format CPF numbers
Stars: ✭ 140 (-3.45%)
Mutual labels:  npm
Use Force Update
React Hook to force your functional component to update.
Stars: ✭ 142 (-2.07%)
Mutual labels:  npm
Webpack Guide
Webpack Handbook
Stars: ✭ 136 (-6.21%)
Mutual labels:  npm
Gatsby Theme Catalyst
An opinionated set of integrated themes and starters as a boilerplate to accelerate development with GatsbyJS
Stars: ✭ 144 (-0.69%)
Mutual labels:  mdx
Yerna
A Lerna-like tool for managing Javascript monorepos using Yarn
Stars: ✭ 140 (-3.45%)
Mutual labels:  npm
Node Docker Good Defaults
sample node app for Docker examples
Stars: ✭ 1,944 (+1240.69%)
Mutual labels:  npm
Use Clippy
React Hook for reading from and writing to the user's clipboard.
Stars: ✭ 139 (-4.14%)
Mutual labels:  npm
Tyrian
Full-featured TypeScript on JVM
Stars: ✭ 138 (-4.83%)
Mutual labels:  npm
Verdaccio Gitlab
private npm registry (Verdaccio) using gitlab-ce as authentication and authorization provider
Stars: ✭ 142 (-2.07%)
Mutual labels:  npm
Npm Webdav Server
WebDAV Server for npm
Stars: ✭ 138 (-4.83%)
Mutual labels:  npm
Npm Publish
GitHub Action to publish to NPM
Stars: ✭ 141 (-2.76%)
Mutual labels:  npm
Droidsound
Droidsound-E. Download links in README.md
Stars: ✭ 136 (-6.21%)
Mutual labels:  mdx
Tosin
Initialize a npm package with everything included, from CI to documentation website
Stars: ✭ 142 (-2.07%)
Mutual labels:  npm
React Native Story
React native instagram story
Stars: ✭ 144 (-0.69%)
Mutual labels:  npm
Klap
zero config, zero dependency bundler for tiny javascript packages
Stars: ✭ 143 (-1.38%)
Mutual labels:  npm
Mirai
The core for Mirai Bot v4 [Deprecated]
Stars: ✭ 142 (-2.07%)
Mutual labels:  npm

React Hooks Library

General purpose React hooks library


npm version build status coverage status

Installation

Install with yarn:

$ yarn add lib-react-hooks

Or, npm if you prefer:

$ npm install --save lib-react-hooks

Usage

Simply import any hooks you want to use in your React component. Example using useAsync:

import React from 'react';
import { useAsync } from 'lib-react-hooks';

const Component = () => {
  const request = useAsync(async () => {
    const response = await fetch('https://api.example.com/users/123');
    return response.json();
  });

  return (
    <div>
      {request.complete ? (
        <p>{`Name: ${request.data.name}`}</p>
      ) : (
        <p>Loading...</p>
      )}
    </div>
  );
};

Available hooks

See the documentation site for more.

License

MIT License. See LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].