I have a Json file
[
"Cooling":
{
"id": 1,
"title": "Cooling",
"description": "Lorem Ipsum is simply ${dummy} text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took"
}
]
I want to replace the ${dummy} to something else base on some conditions before rendering. Is this possible in react?
I am importing this file in my react App.js component and displaying it as:
return (
<div>
<div className="row">
{Json.map(item => (
<div className="col-md-1">
<hr />
<p key={item.id}>
{item.title}
</p>
<p>{item.description}</p>
</div>
))}
</div>
</div>
);
here is it possible to replace the ${dummy} in the item.description before render?