1.0.3 • Published 5 years ago

@jsjoeio/react-use-the-things v1.0.3

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

@jsjoeio/react-use-the-things

a package that gives you custom React things

NPM JavaScript Style Guide

Install

npm install --save @jsjoeio/react-use-the-things

Usage

import React from 'react'

import { TwilioLogo, useCounter, useDocumentTitle } from '@jsjoeio/react-use-the-things'

const App = () => {
  const [count, setCount] = useCounter(4)
  useDocumentTitle(count)
  return (
    <div>
      <TwilioLogo
        height='240px'
        width='520px'
        customStyles={{ border: '1px solid black' }}
    />
    <p>Currently, the count is: {count}</p>
    <button onClick={() => setCount(count + 1)}>Add 1</button>
    <button onClick={() => setCount(count - 1)}>Subtract 1</button>
    </div>
  )
}

License

MIT © jsjoeio

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago