title: import const array React
body: <p>I try to import an array into my parent component and send that data as props to his child</p>
  
  <pre><code>import Seed from './const/Seed';
  
  export default class ProductList extends React.Component{
    render() {
      const product = Seed.products[0]
      return(
        &lt;div&gt;
          &lt;Product 
          id = {product.id}
          title = {product.title}
          /&gt;
        &lt;/div&gt;
      );
    }
  }
  </code></pre>
  
  <p>and i received an error: 
  TypeError: Cannot read property '0' of undefined</p>
  
  <p>maybe i did not format the right way?
  or is there a way to declare a const on a different file? </p>
  
  <pre><code>export default class Seed extends React.Component{
    render(){
      const products  = [
        {
          id: 1,
          title: 'Yellow Pail',
        },
        {
          id: 2,
          title: 'Green Pail',
        }
      ]
      return products
    }
  }
  </code></pre>
  
  <p>Thank you</p>