How to modify the Input Value in React. Suppose the input value is “My name is John Cena”. How do I modify the input value as
“My name is John Cena“
John Cena 21
render() {
return (
<div>
<input
type="text"
value="My name is John Cena"
/>
</div>
)
}
}
export default Module
I tried
value="My name is <b>John Cena</b>"
value=`My name is ${<b>}John Cena${</b>}`
Nothing works.