0.1.15 • Published 11 months ago

laika-ti-chatgpt-react v0.1.15

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

NPM version Build npm-typescriptLicense]github-license-url

Dependencies

React Js
Material UI
Socket IO
swiper
moment
classnames

Installation

$ npm install laika-ti-chatgpt-react

or

$ yarn add laika-ti-chatgpt-react

Usage

Add LaikaChatGPT to your component:

import React from 'react'
import ReactDOM from 'react-dom/client'
import { LaikaChatGPT } from 'laika-ti-chatgpt-react'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
    <React.StrictMode>
      <LaikaChatGPT
        host=""
        user={{
          id: 0,
          userId: 0,
          avatar: '',
          email: '',
          fullname: '',
          tokenAuth: '',
          socketId: '',
        }}
      />
    </React.StrictMode>,
)

License

Laika is MIT licensed.

Author - Daniel Villanueva