I simply decided to create another div within the body with a new id. Then i decided to create another render which prints a hello message with the new name to the new div. I am not sure if this is the most correct way to do it but it worked for me.
<body>
<div id="root"></div>
<div id="yeet"></div>
<script type="text/babel">
class HelloMessage extends React.Component {
render() {
return (
<div>
Hello {this.props.name}
</div>
);
}
}
ReactDOM.render(
<HelloMessage name="Billy" />,
document.getElementById('root')
);
ReactDOM.render(
<HelloMessage name="Timmy" />,
document.getElementById('yeet')
);