-
-
Notifications
You must be signed in to change notification settings - Fork 350
Open
Description
Hi, when I call render multiple times the component is attached in the dom multiple times. I have a requirement to re-render multiple times for creating custom elements.
import { render, useState } from "fre"
function App() {
const [count, setCount] = useState(0)
return (
<>
<h1>{count}</h1>
<button onClick={() => setCount(count + 1)}>+</button>
</>
)
}
render(<App />, document.body)
render(<App />, document.body)
render(<App />, document.body)
Metadata
Metadata
Assignees
Labels
No labels