How to render raw HTML content in React JS?
The return keyword inside the component's function is used to render the result. When a component renders a string value, it is included as text content in the parent element.
Example
import React, { Component } from 'react';
export default function App() {
return <h1 className="bg-secondary text-white text-center p-2">
Hello World
</h1>
}