2.0.0 • Published 3 years ago

@leoalipazaga/use-starwars-quote v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@leoalipazaga/use-starwars-quote

a custom react hook

NPM JavaScript Style Guide

Install

npm install --save @leoalipazaga/use-starwars-quote

Usage

import React from "react";
import { useStarWarsQuote } from "@leoalipazaga/use-starwars-quote";

const App = () => {
  const { loading, quote } = useStarWarsQuote();

  return loading ? <p>Loading...</p> : <div>{quote}</div>;
};
export default App;

License

MIT © n


This hook is created using create-react-hook.