title: Masking a field in React without using plugins
body: <p>I need to mask the SSN  field as 123-45-6789 in React,</p>
  
  <p>My aim is to do that without using plugings like react-input-mask,input-mask etc.</p>
  
  <pre><code>My input 123456789
  Expected input 123-45-6789
  </code></pre>
  
  <p>Can we do that? By regex or something without plugings.</p>
  
  <p>Any help would be appreciated.</p>