/ concept-collection / trystero-messaging-demo
Sign in
concept-collection / trystero-messaging-demo
trystero-messaging-demo / src / main.tsx
10 lines · 538 BBlameHistoryRaw
1import {createRoot} from 'react-dom/client'
2import App from './App.tsx'
3import './index.css'
5// NOTE: We intentionally do NOT wrap <App /> in <StrictMode>. In development
6// StrictMode mounts effects twice (mount → unmount → mount), which would make
7// us join the Trystero room, leave it, then rejoin. Other peers would see a
8// spurious leave/join and the WebRTC connections would churn. Skipping it keeps
9// the live P2P behavior easy to reason about while developing.
10createRoot(document.getElementById('root')!).render(<App />)
moveopenescclose