Skip to content

Glossary: Software Design Patterns in JavaScript

Composition root

The one place, usually main.js, that builds the real parts and hands them to the code that needs them.

Where the book teaches it

Related terms

Dependency injectionConstructor injection