title: React - Check If Props Exist
body: <p>I searched around the internet for an answer to this question, and I didn't find one. Therefore I am posting my question here.</p>
  
  <p>I have a parent component (App) and a child component (Child).
  The App component has a state with some data in it, like so:</p>
  
  <pre><code>class App extends Component {
      constructor() {
          super()
  
          this.state = {
              currentOrganization: {
                  name: 'name',
                  email: 'email'
              }
          }
          render() {
              return (
                  &lt;Child data={this.state.currentOrganization} /&gt;
              )
          }
      }
  }
  </code></pre>
  
  <p>In my Child component, I have a form: </p>
  
  <pre><code>class Child extends Component {
      constructor() {
          super()
  
          this.state = {
              formData: {
                  name: '',
                  email: '',
              }
          }
      }
  
          render() {
              return (
              &lt;Form ... /&gt;
            )
          }
      }
  </code></pre>
  
  <p>According to the React docs, forms generally should have a state containing properties that correspond with each element of the form. The form that lies in my Child component must have the data of the currentOrganization (as seen in the App component) pre-populate into itself. </p>
  
  <p>In order to accomplish this, I have to set the state of the Child to the props it receives from its parent.</p>
  
  <p>What's the best way to check if my Child component received the props it needs in order to update its own state?</p>