1.0.0 • Published 5 years ago

@pmcdevitt/react-helper v1.0.0

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

@pmcdevitt/react-helper

React components

Usage...

import React from 'react'

import { TwilioLogo, useCounter, useDocumentTitle } from '@GITHUB-USERNAME/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 © @PMcDevitt