How to Import a File in ReactJS?

Mac FilePicker not Recognizing Mouse Events

When writing upload login in ReactJS, there might be a chance that file picker doesn't recogize mouse events.
This is more of a macos fault than react fault
Run the following in terminal to fix it
killall filepicker
Copy link