If I do
const clicked = () => console.log(“click”);
renderToString(<button onClick={clicked}>Click here</button>
and when I print out the rendered string, all I see is <button>Click here</button>
Is it possible that the JS is not rendered from this function?