Skip to content

RickBr0wn/use-star-wars-quote

Repository files navigation

@rickbrown/use-star-wars-quote

a custom React hook which provides a random quote from the legendary star wars films.

NPM JavaScript Style Guide

Install

yarn add @rickbrown/use-star-wars-quote

Usage

import React from 'react';
import { useStarWarsQuote } from '@rickbrown/use-star-wars-quote';

const App = () => {
  const { quote, loading } = useStarWarsQuote();
  return <div>{loading ? <p>loading..</p> : <p>{quote}</p>}</div>;
};

export default App;

License

MIT © RickBr0wn


This hook is created using create-react-hook.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published