Named exports are useful to export several values. During the import, it is mandatory to use the same name of the corresponding object.
For example, I created a file containing the functions to retrieve the data from the back-end webAPI. It's useful to export these as an object so that the importer can import the specific functions they need.
But a default export can be imported with any name:
// export feature declared earlier as defaultexport { myFunction asdefault };// export individual features as defaultexportdefaultfunction () { ... }exportdefaultclass { .. }// each export overwrites the previous one
The React component functions are exported as the default export.