0.0.3 • Published 1 year ago

feedhook v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

PropsTypeDescriptionOptions
widgetType *requiredstringDecide what kind of widget this is?1. pageHelpful 2. rateExpereince 3. shareFeedback
callbackfunction
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago