I have the static data in a component and passing it in another component. This static data is in the form of string and it contains some html tags. For Eg:
const obj = {
ramdomData: "This is an example string.<br />Now I want to apply break here"
}
Now passing this data in another component:
<ExampleComponent data={obj} />
in ExampleComponent:
<div>
{props.data.ramdomData}
</div>
In browser, it prints This is an example string.<br />Now I want to apply break here.
I want to apply break here.
How should I do it?