title: Passing props to hook components getting undefined
body: <p>How i can pass props in two hook components?</p>
  
  <p>I have a root component that uses a <code>Modal</code>, i need to pass to my <code>Modal</code> component the props <code>title</code> and show in the component:</p>
  
  <pre><code>&lt;Modal title="test" /&gt;
  </code></pre>
  
  <p>In the modal component, i'm receiving the props as a parameter:</p>
  
  <pre><code>const Modal = (title) =&gt; {
  
  return (
      &lt;h6&gt;{title}&lt;/h6&gt;
  )
  </code></pre>
  
  <p>But i'm receiving undefined.</p>
  
  <p>I also tried with {} :</p>
  
  <pre><code>const Modal = ({title}) =&gt; {
  </code></pre>
  
  <p>Why?</p>