feedhook
v0.0.3
Published
Register and install the package and start taking attestations the right way.
Downloads
1
Readme
Feedhook
Register and install the package and start taking attestations the right way.
Step 1 - Registering your DApp
Go to → https://feedhook.vercel.app Connect wallet and register with all the following details
Step 2 - Installing Libraries
Install the library along with dependencies if they aren’t already on the app
npm install feedhook
Other dependencies
npm install wagmi ethers
Step 3 - Add component
Using it in your app
import {Feedhook} from 'feedhook';
const YourApp = () => {
return (
<>
<Feedhook widgetType="pageHelpful" callback={callback} />
</>
)
}
Step 3 - Add component
Using it in your app
import {Feedhook} from 'feedhook';
const YourApp = () => {
return (
<>
<Feedhook widgetType="pageHelpful" callback={callback} />
</>
)
}
Step 4 - Add Callback function
import {Feedhook} from 'feedhook';
const YourApp = () => {
const callback = () => {
// documentation of contract repository
}
return (
<>
<Feedhook widgetType="pageHelpful" callback={callback} />
</>
)
}
API Reference
| Props | Type | Description | Options | | --- | --- | --- | --- | | widgetType *required | string | Decide what kind of widget this is? | 1. pageHelpful 2. rateExpereince 3. shareFeedback | | callback | function | | |