@afbroman/react-use-sw-quote

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @afbroman/react-use-sw-quote

Weekly Downloads

14

Version

1.0.0

License

MIT

Unpacked Size

561 kB

Total Files

22

Last publish

Collaborators

  • afbroman