use-react-router-breadcrumbs icon indicating copy to clipboard operation
use-react-router-breadcrumbs copied to clipboard

Question: why react-router is peer dependency instead of react-router-dom?

Open sitek94 opened this issue 3 years ago • 1 comments

Hey there! 👋

I'm wondering why react-router is set as peer dependency and not react-router-dom, which is officially recommended?

I'm asking only out of curiosity, because I got this warning:

Screen Shot 2022-07-10 at 20 09 58

sitek94 avatar Jul 10 '22 18:07 sitek94

It's mostly because react-router is compatible with both web DOM and react native... I'm considering switching to react-router-dom and perhaps splitting out a different version of this util for native (if there's any demand) 🤔

icd2k3 avatar Jul 20 '22 18:07 icd2k3

v4.0.0

icd2k3 avatar Sep 09 '22 21:09 icd2k3

Thanks both for explaining and migrating to react-router-dom, cheers! 🙇

sitek94 avatar Sep 09 '22 21:09 sitek94