title: React onClick on div element
body: <p>I have created one Object in a file config.js</p>
  
  <pre><code>export const handleClick =() =&gt; {
     return "hi"
  }
  
  export const abc = {
    'a': 'rollNo',
    'b': 'age',
    'c': `&lt;div onClick='${handleClick}'&gt;Click 
         Me&lt;/div&gt;`
  }
  </code></pre>
  
  <p>I am iterating over the object in table and values are printed in table.</p>
  
  <p>When I click on div,nothing happens.onClick event is not tiggered in react.</p>
  
  <p>Can anyone please tell whats the issue</p>