Skip to content

Commit

Permalink
docs: fix the bug that the text out of document without line break (#…
Browse files Browse the repository at this point in the history
…1810)

Co-authored-by: huangcheng <huangcheng.lq@bytedance.com>
  • Loading branch information
c0dedance and hchlq authored Aug 18, 2022
1 parent 5055c34 commit 8017618
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/hooks/src/useWebSocket/demo/demo1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export default () => {
<div style={{ marginTop: 8 }}>
<p>received message: </p>
{messageHistory.current.map((message, index) => (
<p key={index}>{message?.data}</p>
<p key={index} style={{ wordWrap: 'break-word' }}>
{message?.data}
</p>
))}
</div>
</div>
Expand Down

0 comments on commit 8017618

Please sign in to comment.