![renderToString doesn't sent onClick event, and calling bindPopup method without renderToString isn't possible because of types (using react-leaflet with typescript). Is there any way of doing this so onClick event works? Thanks : renderToString doesn't sent onClick event, and calling bindPopup method without renderToString isn't possible because of types (using react-leaflet with typescript). Is there any way of doing this so onClick event works? Thanks :](https://preview.redd.it/ygpeks6c07j81.png?width=840&format=png&auto=webp&s=8fefa5a915e556c07dbdab02bd446ee9c5b42e60)
renderToString doesn't sent onClick event, and calling bindPopup method without renderToString isn't possible because of types (using react-leaflet with typescript). Is there any way of doing this so onClick event works? Thanks :
GitHub - winston0410/render-to-string-with-data: A hook for `useEffect()` in server side for data hydration in React.
![reactjs - React js server side rendering window, document, jQuery and localStorage are not working - Stack Overflow reactjs - React js server side rendering window, document, jQuery and localStorage are not working - Stack Overflow](https://i.stack.imgur.com/VP4mQ.png)
reactjs - React js server side rendering window, document, jQuery and localStorage are not working - Stack Overflow
![How to implement server-side rendering (SSR) in your React application with NodeJS - step by step tutorial - Leber Software How to implement server-side rendering (SSR) in your React application with NodeJS - step by step tutorial - Leber Software](https://lebersoftware.hu/wp-content/uploads/2020/02/Server-side-rendering-1024x645.png)
How to implement server-side rendering (SSR) in your React application with NodeJS - step by step tutorial - Leber Software
GitHub - richardscarrott/react-render-to-string-async: Non-blocking asynchronous alternative to `React.renderToString` and `React .renderToStaticMarkup`.
![Render To String vs Render To Node Stream | Server Server Side Rendering with React and Redux - YouTube Render To String vs Render To Node Stream | Server Server Side Rendering with React and Redux - YouTube](https://i.ytimg.com/vi/5-gr-f5BVl8/maxresdefault.jpg)