![]() ![]() ![]() The examples in this reference all use import syntax. If you installed it from npm, you can import the pieces you need. If you installed React Router as a global (using a tag), you can find the library on the window.ReactRouterDOM object. Otherwise you may accidentally import mismatched versions of the library in your app. When you import stuff, you should always import from either react-router-dom or react-router-native and never directly from react-router.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |