title: Convert pure javascript script to a class component in react
body: <p>i'm having this javascript snippet with html tags and i must adjust it in jsx for react. How to convert the onLoadEvent function and the form</p>
  
  <pre><code>&lt;html&gt; 
  &lt;head&gt; 
  &lt;title&gt;Title&lt;/title&gt; 
  &lt;script language="Javascript" &gt; 
  function OnLoadEvent(){ 
  document.threedfrom.submit(); 
  }
  &lt;/script&gt;
  &lt;/head&gt; 
  &lt;body OnLoad="OnLoadEvent();" &gt; 
  &lt;form name="123123" action="url" method="POST"&gt; 
  &lt;textarea style="display: none"name="PaReq"&gt; 
  &lt;/textarea&gt;
  &lt;input type="hidden" name="ew" value="1"&gt;Hlleo
  &lt;input type="hidden" name="MD" value="testtest"&gt; 
  &lt;noscript&gt;
    &lt;p align="center" class="main"&gt;Testing&lt;/p&gt;
    &lt;p align="center" class="main"&gt;&lt;input type="submit" value="Submit" /&gt;&lt;/p&gt;
  &lt;/noscript&gt;
  &lt;/form&gt; 
  &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>