I'm new at Reactjs and I try to fetch some HTML data but my problem is when I check browser the HTML tag show as a text, not as an element
My component source:
import React from 'react';
export class About extends React.Component{
constructor(props){
super(props);
this.state = {
data: '<p>Hello world</p>',
}
}
render(){
return(
<div className="container">
{this.state.data}
</div>
)
}
}
the result it shows:
<p>Hello world</p>
what I want to see:
Hello world