dappconnect-chat-sdk/examples/community/index.tsx

26 lines
484 B
TypeScript
Raw Normal View History

import React, { render } from 'react-dom'
import { CommunityChat, lightTheme } from '@status-im/react'
import { StrictMode } from 'react'
const App = () => {
return (
<div>
<CommunityChat
theme={lightTheme}
communityKey="<YOUR_COMMUNITY_KEY>"
config={{
environment: '<ENVIRONMENT>',
dappUrl: '<URL>',
}}
/>
</div>
)
}
render(
<StrictMode>
<App />
</StrictMode>,
document.getElementById('root')
)