title: Append a React component in another on button click
body: <p>I have a big component <code>&lt;User&gt;</code> and a small one <code>&lt;Task&gt;</code> and want to give a big component a button and on click on it append the component <code>&lt;Task&gt;</code> to the <code>&lt;User&gt;</code></p>
  
  <h2>User.jsx</h2>
  
  <pre><code>&lt;div&gt;
    &lt;Task /&gt;
    &lt;button onClick={`Function here to append a new Task component`}&gt;
      New Task
    &lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <h2>Task.jsx</h2>
  
  <pre><code>&lt;div&gt;
    This is New task
  &lt;/div&gt;
  </code></pre>