title: Put length constraint in a TextField in react js
body: <p>I am taking an input from the user of the card number and wants that the length entered by user must not be less than and more than 12. Here is the declaration of my textfield.</p>
  
  <pre><code>&lt;TextField
      id="SigninTextfield"
      label="Aadhaar number"
      id="Aadhar"
      lineDirection="center"
      required={true}
      type="number"
      maxLength={12}
      style={styles.rootstyle}
      erorText="Please enter only 12 digits number"
  /&gt;
  </code></pre>
  
  <p>Now I am not understanding whether to use javascript or any event handler for restricting the length.</p>