@reiterate/react
v0.0.4
Published
Library to send feedback to Reiterate.so for React.
Downloads
2
Maintainers
Readme
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>
</>
)
}