sokratis
sokratis
Explore posts from servers
SSolidJS
Created by sokratis on 4/30/2024 in #support
Calling root render multiple times
In React, if you call render on the same root more than once (e.g. root.render(<App someProp={43}/>), React will update the DOM as necessary to reflect the latest JSX you passed. Calling render on the same root again is similar to calling the set function on the root component. What's the suggested way to achieve a similar behavior using solid render(() => <App />, document.getElementById("app"));?
13 replies