@leoalipazaga/use-starwars-quote

2.0.0 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @leoalipazaga/use-starwars-quote

Weekly Downloads

9

Version

2.0.0

License

MIT

Unpacked Size

1.35 MB

Total Files

22

Last publish

Collaborators

  • leoalipazaga