Custom header with react

I wanted to create a custom header using react library.

So, I tried to insert react and babel cdn into head of HTML/CSS’s edit. And applied ReactDOM Render Method in Header.

But, it did not work in discourse forum.

It would be helpful for me any guidance given using React on Discourse.