My case is:
I have an HTML file that works perfectly, with all its scripts, functions ... My problem is to pass it to a React component. Because of that, is it possible to import this file to the React component, and render it in your view using the render () method?
It would be something like this:
import Prueba from './prueba.html'
export default class App extends Component {
render() {
return (
<div id="prueba"/>
)
}
}
render(Prueba, document.getElementById('prueba'));
Any suggestions to solve this problem?