ES6 export as a Building Block

Publication date: 2022-05-08

What is a building block (brick) in modern ES2015+ applications? A variable, function, class, module? My answer is export. Today we organize JavaScript code as ES6 modules and connect them via import:

import {export1, export2} from "module-name";

I'm convinced: JavaScript needs namespaces, like in "serious" languages. I plan to continue this topic in future posts.

Discuss This Publication

If you would like to discuss this piece, ask a question, or continue the conversation, join my Telegram channel.

On the channel I publish new materials, working notes, and announcements, while the site hosts the full texts and structured long-form publications.

Alex Gusev Lab on Telegram (EN)