hillz_chat
v1.7.0
Published
In your project terminal run the following command
Downloads
460
Readme
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 }]]
}