0.2.3 • Published 4 years ago
feedback-fish v0.2.3
feedback.fish
Usage
We have an npm package that exposes our feedback form as a React component. To use it, first install the package:
npm install feedback-fish
Then import the component in your React app and render it:
import { FeedbackForm } from 'feedback-fish'
// Note: the triggerComponent can be anything you want as long as
// you spread the passed props onto an HTML element { ...props }
const Button = (props) => <button {...props}>Feedback</button>
<FeedbackForm
projectId="..."
userId="..."
triggerComponent={Button}
/>