title: How to pass Value in export default
body: <p>I have one function like </p>
  
  <pre><code>    export default (
    &lt;Route name="App" path="/" handler={App}&gt;
      &lt;NotFoundRoute handler={require('./pages/PageNotFound')} /&gt;
      &lt;Route handler={TaskList} data={data} &gt;
      &lt;/Route&gt;
      {data.map(task =&gt;
                &lt;Route name={task.PageName}  handler={require(task.PageUrl)}&gt;
               &lt;/Route&gt;
            )}
  
    &lt;/Route&gt;
  );
  </code></pre>
  
  <p>I want to pass the data to this code so how I can convert this code as a function can anyone please help to pass in it</p>