I am using React.js. I want to embed an html file to show into the browser. First I import the html file. But when using the html file into embed tag. It throws and error saying "You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file"
Here is the code -
import React from 'react';
import htmlFile from './htmlFile.html';
function Render(){
return (
<embed src = {htmlFile}>
</embed>
)
}
export default Render;
Here is the screenshot of the error -
Please help me solve this problem.
