Package
React library peer dependency
Declare the host React range and verify actual consumer compatibility.
Formal Syntax & Structure
react syntaxreact
"peerDependencies": {"react": "^18.0.0 || ^19.0.0"}Working Example
Example Snippetreact
Check npm ls react in an approved consumer.