Default Module

In this lesson, you will look at what a default module is.

Module with default export

Another concept around modules is that each module can have a default export. This concept is unique for each module. The syntax is the keyword default between export and the actual element to expose.

A default export opens an import without specifying an element or loading everything with the star syntax. In other words, it allows access by importing without using the curly brackets and exporting without even naming the element. The main use case is exporting a single point of a module.

Get hands-on with 1200+ tech skills courses.