JSFiddle - React, Tailwind, and code Playground

by Govinda Ghimire

HTML

Hello <div class="something">@johndoe</div> how are you?

JavaScript

string a = string.replace('@johndoe', '<div class="something">@johndoe</div>');
console.log(a);