Peer Dependencies Playground

Dodi’s booking app engine: write package.json (React, react-query, use-sync-external-store, a calendar with react as a peer or a dependency) and run npm…

Why it matters

ERESOLVE unable to resolve dependency tree and Invalid hook call are the two errors most met when upgrading React. Both are about peers: in the first npm refuses a range that does not fit, in the second a plugin brings its own React. Knowing the difference makes you fix ranges rather than patch with --force.

The key idea

A peer means "use yours": one React for everyone, and npm checks it

Common mistakes

Try it in this playground