I am building a Web application using React JS. In my React JS code, I need to render the variable as opening and closing html tags. Let's say I have a variable as follow.
const tag = "div";
I want to render something like this:
<{tab}>Content</{tag}>
How can I do that?