0.0.4 • Published 3 years ago

@reiterate/react v0.0.4

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

Reiterate.so

Installation

yarn add @reiterate/react

or

npm add @reiterate/react

Usage

const YourComponent = ({ userId }: { userId: string }) => {
  const [text, setText] = useState('')
  const { create } = useFeedback({ userId })

  return (
    <>
      <textarea
        value={text}
        onChange={(e) => setText(e.target.value)}
      ></textarea>
      <button onClick={create(text)}>Feedback</button>
    </>
  )
}
0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago