This video is available to students only

What are Dependencies?

Introduction to project dependencies, devDependencies, and peerDependencies.

The end goal of writing a library is having an application consume our code. In other words, our library would become a dependency of a project. In the same way as projects can depend on our library, our library can also have its own dependencies.

There are three types of dependencies:

  1. Dependencies we rely on (dependencies)

  2. Dependencies we only need for development (devDependencies)

  3. Dependencies we expect our users to provide (peerDependencies)

How package.json defines dependencies#

 

This page is a preview of Creating React Libraries from Scratch

Start a new discussion. All notification go to the author.