Skip to content

Glossary: React Basics

Default and named exports

Also written: export default, named export

A file's one default export is imported without braces (`import ProductCard from "./ProductCard.jsx"`), while named exports are imported with braces (`import { money } from "./money.js"`). A common pattern is to give each component its own file with a default export.

Where the book teaches it

Related terms

Component