1.0.0 • Published 4 years ago

@nliveris/use-sw-quote v1.0.0

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

@nliveris/use-sw-quote

NPM JavaScript Style Guide

Install

npm install --save @nliveris/use-sw-quote

Usage

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

const App = () => {
  const { quote, loading } = useStarWarsQuote()
  if (loading) return <p>Loading ...</p>
  if (quote) return <p>{quote}</p>
  return null
}

export default App

License

MIT © NicolasLiveris


This hook is created using create-react-hook.

1.0.0

4 years ago