-
Notifications
You must be signed in to change notification settings - Fork 75
Should shared React Components use peerDependencies or dependencies? #345
Comments
So I did some digging, and I think I've found some answers!
However, I still have a question about how we enforce peerDependencies, which was my original concern. I'll share my current understanding:
Sorry for the essay, and thanks so much for taking the time for this! |
Hey @magicmark! Thanks for the question and the follow-up. I'm pretty sure you've worked out things. I actually have answered this question before as well: #279 To answer your specific question:
Generally you should probably not let your I wouldn't worry too much about it though. Good luck! |
Hi @kentcdodds!
I see that many shared react component libs (e.g. downshift) use
peerDependencies
to depend on react/react-dom (vs regulardependencies
).I'm interested as to what are the tradeoffs/differences here for doing so? Why not just use regular
dependencies
?Thanks so much!!
The text was updated successfully, but these errors were encountered: