How can I concatenate two React objects(React.createElement()) without JSX ?
Goal
My goal is to render message, the message should contain the user full name in bold.
Problem
The problem is that when I concatenate the react objects I am getting the message content and instead of the full name there is [object Object] in the string.
Code
var firstName = React.createElement("b", {}, this.state.User["FirstName"]) var lastName = React.createElement("b", {}, this.state.User["LastName"]) var message = "Hello " + firstName + " " + lastName message += " You can edit your profile in the Users Table" return React.createElement("p", {}, message)