Also, you could do it via context. It would be rou...
# react
n
Also, you could do it via context. It would be router independent solution, but
react-router-dom
support old context API, and wrapper supports new context API. But maybe I am wrong here.