
See for tips about how to debug and fix this problem. You might have more than one copy of React in the same app.You might be breaking the Rules of Hooks.You might have mismatching versions of React and the renderer (such as React DOM).>This could happen for one of the following reasons:



Hooks can only be called inside of the body of a function component. This code is taken from the official react-router documentation, did everything as written ( ) I'm trying to use a react-router, after using the library some problems begin, I've already tried to write different code, I found it ready-made on the Internet, but still something is wrong (even reset Windows).
