kaushalyap
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
beta/src/content/learn/synchronizing-with-effects.md
|
@ -488,7 +488,7 @@ Let's try running this code: |
|
|
<Sandpack> |
|
|
<Sandpack> |
|
|
|
|
|
|
|
|
```js |
|
|
```js |
|
|
import { useState, useEffect } from 'react'; |
|
|
import { useEffect } from 'react'; |
|
|
import { createConnection } from './chat.js'; |
|
|
import { createConnection } from './chat.js'; |
|
|
|
|
|
|
|
|
export default function ChatRoom() { |
|
|
export default function ChatRoom() { |
|
|