title: At least one required prop in React
body: <p>I need to make at least one of the props required:</p>
  
  <pre><code>MyComponent.propTypes = {
     data: PropTypes.object,
     url: PropTypes.string
  };
  </code></pre>
  
  <p>So in the example above, either <code>data</code> or <code>url</code> prop must be provided. The use case here is that the user could either provide the <code>data</code> or the <code>url</code>. If the <code>url</code> is provided, then the component will fetch the <code>data</code>.</p>
  
  <p>Bonus question: How do I do at least one prop vs only one of the props?</p>