usePings

All super-power of react-pings are come from usePings hook.

usePings is very important hook for this library all the toasts are come from this hook.

Syntax

Typescript
1usePings();
1usePings();

Parameters

  • No parameters

Usage

Typescript
1import { usePings } from "react-pings";
2
3const MyComponent = () => {
4 const ping = usePings();
5 // now ping variable have all the super-powers of usePings hook
6};
1import { usePings } from "react-pings";
2
3const MyComponent = () => {
4 const ping = usePings();
5 // now ping variable have all the super-powers of usePings hook
6};