I\'m trying to use an ES5 module in a new ReactJS application and I\'m struggling to understand how to correctly import that module, such that the main function within it ca
You have to give it an identifier:
import datepicker from 'air-datepicker';