title: Warning: Failed prop type: Invalid prop `error` of type `string` expected `boolean`
body: <p>I have a material-ui Textfield component in my ReactJS project.</p>
  
  <p>When I run my code, the warning I got in the console is:</p>
  
  <pre><code>index.js:1 Warning: Failed prop type: Invalid prop `error` of type `string` supplied to `ForwardRef(TextField)`, expected `boolean`.
  </code></pre>
  
  <p>My component code is below.</p>
  
  <pre><code> &lt;TextField
     required
     error={errorMessages.myErrorMessage}
     helperText={errorMessages.myErrorMessage}
     value={myTextField}
    /&gt;
  </code></pre>
  
  <p>This code works totally fine but the problem is that it gives a warning message in the console. </p>
  
  <p>I want an error message to be shown only if "errorMessages.myErrorMessage" value is not an empty string. </p>
  
  <p>Is there any ES6 or any other solution to this?</p>