🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

@mojitonft/hooks

Package Overview
Dependencies
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mojitonft/hooks

react hooks library

latest
Source
npmnpm
Version
1.0.5-alpha.5
Version published
Maintainers
5
Created
Source

A high-quality & reliable React Hooks library.

✨ Features

  • Easy to learn & use
  • Contains a large number of advanced Hooks that are refined from business scenarios
  • Written in TypeScript with predictable static types

📦 Install

$ npm install --save @mojitonft/hooks
# or
$ yarn add @mojitonft/hooks

🔨 Usage

import { MojitoHooksProvider, onErrorCallback, useServerTime  } from '@mojitonft/hooks';

onErrorCallback((e) => {
  // Log error to Sentry or anywhere you'd like:
  console.error(e);
});

const Component: React.FC = () => {
  const data = useServerTime();

  return <pre>{ JSON.stringify(data, null, '  ')}</pre>;
};

const App: React.FC = () => {
  return (
    <MojitoHooksProvider>
      <YourComponent />
    </MojitoHooksProvider>
  );
};

Keywords

mojito

FAQs

Package last updated on 15 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts