Skip to content

Commit 52c5544

Browse files
watzakmarcbachmann
authored andcommitted
fix: since react 19.x ReactDOM.render is deprecated - lint fix
1 parent 904fd26 commit 52c5544

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/events.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ function showEvent (event) {
9494
}
9595

9696
function draw () {
97-
const paragraph = createRoot(document.querySelector('.paragraph-example-events'));
98-
paragraph.render(<Events list={events} />);}
97+
const paragraph = createRoot(document.querySelector('.paragraph-example-events'))
98+
paragraph.render(<Events list={events} />)
99+
}
99100

100101
function isFromFirstExample (elem) {
101102
return !!closest(elem, '.paragraph-example')

0 commit comments

Comments
 (0)