I have a some code
let red = 'red'
let blue = 'blue'
let formula = "1+2"
let answer = "3"
let string = "<span class="+red+">"+formula+"</span>"+"="+"<span class="+blue+">"+answer+"</span>"
111 In render's return
<div dangerouslySetInnerHTML={{__html: string]}} >
the above will show "1+23" with no color, however, I want 1+2=3 with red and blue classes created
UPDATE: I found should not be "className", should be "class" even this is in jsx, I still cannot get the equal being shown, in fact the class is from a string also