@dynamicdocs/react
v1.0.0
Published
DynamicDocs is a Web3-Native Website Widget. Please [sign up](https://dynamicdocs.ai/signup) for an account and get your appId before you start integrating the widget to your website.
Downloads
3
Readme
DynamicDocs Widget SDK
DynamicDocs is a Web3-Native Website Widget. Please sign up for an account and get your appId before you start integrating the widget to your website.
Installation
To install the SDK, use npm or yarn:
npm install @dynamicdocs/widget-sdk
or
yarn add @dynamicdocs/widget-sdk
Initialization
To initialize the chatbot widget, import the initialize function from the SDK and call it with your configuration. Here is an example using a simple React component:
import React from 'react';
import { initialize } from '@dynamicdocs/widget-sdk';
const App = () => {
initialize({
appId: 'your-app-id',
});
return <div>My Application</div>;
};
export default App;