Default And Named Exports From The Same Module
ES6 module syntax allows for a single default export and any number of named exports. In fact, you can have both named exports and a default export in the same module.
Here is an example:
In this case, you could import the default and named exports like so:
Last updated