I am looking for the equivalent of creating of HTML Tags step by step (concatenating them) like below in React:
var result="";
result += "<div>";
result += "dd";
result += "</div>";
Something like the following, but this is not working. I tried with an array, but it did also not work...
function MyComponent(props) {
var result;
result += <div>;
result += "dd";
result += </div>;
return result;
}
Thanks very much!