React: how to load and render external html file that has a script?

In my project, I have a description page which written in html. I use javascript inside that file for show neccessary content. But when I use dangerouslySetInnerHTML={{__html: sample.html} to render the html file, javascript part is not working.

So how can I render a html file that has javascript inside that html?