iwelp
v1.7.4
Published
A feedback component library
Downloads
3,661
Readme
Welp Package
A react component for collecting feedback Welp Portal
Install
npm install @ingka-group-digital/iwelp
Basic Usage
Use the Welp component
import "iwelp/lib/assets/index.scss";
import Welp from "iwelp/components";
function App() {
return (
<Welp scopeId={"UNIQUE_SCOPE_ID"} />
)
}
Use the Welp Provider
import WelpProvider from "iwelp/providers";
function App(){
return (
<WelpProvider scopeId={"UNIQUE_SCOPE_ID"}>
...
</WelpProvider>
)
}
You can also use welp actions directly
import {fetchScope, submitRating} from "iwelp";