hillz_chat
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

Installation

In your project terminal run the following command

npm i hillz_chat
# or
yarn add hillz_chat

Usage

import { Chat, ContextProviders } from "hillz_chat"

export const MyComponent = () => {
  return (
    <ContextProviders baseUrl={BASE_URL} origin={domain}>
      <Chat />
    </ContextProviders>
  )
}

export default MyComponent

And in the root of project add ChatPortalContainer component

import { ChatPortalContainer } from "hillz_chat"

export const App = () => {
  return (
    //... Other components
    <ChatPortalContainer />
  )
}

export default App

SSR (NextJs)

Create an file called .babelrc and add the following code

{
  "presets": ["next/babel"],
  "plugins": [["styled-components", { "ssr": true }]]
}

Readme

Keywords

Package Sidebar

Install

npm i hillz_chat

Weekly Downloads

106

Version

1.5.0

License

MIT

Unpacked Size

179 kB

Total Files

200

Last publish

Collaborators

  • chadko