Socket
Socket
Sign inDemoInstall

@uhl7792/react-use-quote-of-the-day

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @uhl7792/react-use-quote-of-the-day

Pulls the quote of the day from quotes.rest api


Version published
0
Maintainers
1
Install size
122 kB
Created
Weekly downloads
 

Readme

Source

@uhl7792/react-use-quote-of-the-day

Pulls the quote of the day from quotes.rest api

NPM JavaScript Style Guide

Install

npm install --save @uhl7792/react-use-quote-of-the-day

Usage

import React, { Component } from 'react'

import { useMyuseQuoteOfTheDayHook } from '@uhl7792/react-use-quote-of-the-day'

const App = () => {
  const [quote, loading] = useMyuseQuoteOfTheDayHook()
  if (loading) {
    return <h2>...loading</h2>
  } else if (quote) {
    return  (
      <h1>
        {quote}
      </h1>
    )
  }
  return null;
}

License

MIT © danieluhl


This hook is created using create-react-hook.

FAQs

Last updated on 14 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc