1.0.0 • Published 5 years ago

@afbroman/react-use-sw-quote v1.0.0

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

@afbroman/react-use-sw-quote

custom react hook for getting a random Star Wars quote

NPM JavaScript Style Guide

Install

npm install --save @afbroman/react-use-sw-quote

Usage

import React, { Component } from 'react'

import { useStarWarsQuote } from '@afbroman/react-use-sw-quote'

const Example = () => {
  const example = useStarWarsQuote()
  return (
    <div>{example}</div>
  )
}

License

MIT © afbroman


This hook is created using create-react-hook.