dappconnect-sdks/examples/community/index.tsx

27 lines
477 B
TypeScript
Raw Normal View History

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