The export ___ from "module"
statements are a very useful mechanism for
building up "package" modules in a declarative way. In the ES6 spec, we can
export through a single export with export {x} from "mod"
, optionally renaming
it with export {x as v} from "mod"
. We can also spread all exports with
export * from "mod"
.
These three export-from statements are easy to understand if you understand the semantics of the similar looking import statements.