title: ReactJS: How to use EventListener in child component created in parent
body: <p>I have this problem when i want to make some events with children from map when i have eventlistener. How to use EventListener in child component created in parent? </p>
  
  <p>Try to resize window:</p>
  
  <p><a href="https://codesandbox.io/s/2j2wnyvln" rel="nofollow noreferrer">https://codesandbox.io/s/2j2wnyvln</a></p>
  
  <p><a href="https://2j2wnyvln.codesandbox.io/" rel="nofollow noreferrer">https://2j2wnyvln.codesandbox.io/</a></p>
  
  <p>Does it correct code?</p>