title: Passing props to a component through state
body: <p><strong>Prefix:</strong></p>
  
  <p>I am working with react-native, and am wondering the best practice for passing props down from a parent to a child component.  I have tested this on my android device only.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>From my understanding it is possible to pass values to a component through the use of props, ie:</p>
  
  <pre><code>&lt;myComponent myProp="some data" /&gt;
  </code></pre>
  
  <p>and it can be referenced in my myComponent using <code>this.props.myProp</code>. Would it be bad practice (or will it even work) to create my state object in the constructor like so:</p>
  
  <pre><code>constructor(props){
    super(props);
    this.state = {
      myStateProp: this.props.myProp
    };
  }
  </code></pre>
  
  <p>which could then be called in that component as <code>this.state.myStateProp</code>.  I am relatively new to react-native and am trying to learn as much as I can.  I have tried it in several use cases with varying results, and am uncertain as to the behavior.  Thank you for your input!</p>