ShakaCode | ShakaCode Blog | Rails On Maui Blog | Rails | ReactJs | JavaScript | Webpack | Productivity |

Render dynamic html in React without using dangerouslyset inner html?


#1

Hi Guys,

I am new to Javascript ReactJS and started learning about JavaScript. How to use html instead of jsx code. If we use set inner html, cannot render dynamic content and nor access the component functions.

Thanks in Advance


#2

Maybe use a reusable stateless React component? Also, server-side rendering would be a good option to request the templates from the server.

I would honestly recommend using JSX code, however (although I do not know your use case so it is hard to say)


#3

Hi @splashinn

Thanks …