title: how get get file name in file chooser in react?
body: <p>could you please tell me how get get file name in file chooser in react ?
  I am trying to set value in input field after choosing file from <code>file chooser</code>
  here is my code
  <a href="https://stackblitz.com/edit/react-d4kp1d?file=bulk.js" rel="noreferrer">https://stackblitz.com/edit/react-d4kp1d?file=bulk.js</a>
  I tried like this</p>
  
  <pre><code>&lt;input
          id="file_input_file"
          className="none"
          type="file"
          ref={inputRef }
          onChange={(e)=&gt;{
            console.log('---')
            console.log(inputRef.current[0].files[0].name)
  
          }}
        /&gt;
  </code></pre>
  
  <p>it gives me <code>undefined</code></p>