1.0.2 • Published 5 years ago

usephrases v1.0.2

Weekly downloads
2
License
UNLICENSED
Repository
github
Last release
5 years ago

usePhrases

Created with CodeSandbox This react hook return a list of given array for making the UX not bored when waiting the responses.

Install

$ npm install --save react-useinterval

API

import React from "react";
import usePhrases from "usePhrases";

function App() {
  const [loaded, set] = useState(false);
  
  const loading = usePhrases(arr);
  
  return <div className="App">{loaded ? loading : "data"}</div>;
}

const arr = [
  "They see me loading,They waiting",
  "Start your engines",
  "Reviving dead memes",
  "Looking for the power button",
  "Loading your digital hug"
];
//Those phrases credit by discord

For more phrases visit https://gist.github.com/fourjr/f94fc112cef6da07fc274216d5755420

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago