String.prototype.replacereturns a string, so it converts the call React.createElementto a string [object Object].
Instead, you may need to break the sentence into words, put a card on them and return jsx if it matches your regular expression, otherwise it will return a string.
var stringArray = "hello how are you hello".split(" ")
var regex = /hello|you/i
var elements = stringArray.map(string =>
regex.test(string) ? <span>{ string }</span> : string
)
render() {
return <div>{ elements }</div>
}