These are chat archives for SmartFocus/reactjs

Sep 2017
Kristian Nissen
Sep 05 2017 10:13

I really need some help wrapping my brain around react-router-dom and redux, take this for example in the comment it says

Now you can dispatch navigation actions from anywhere!

which sounds awesome, so from anywhere inside my app I can call store.dispatch and access my state and reducers. Only problem is, since the react-router-dom is now regular components that can be dumped anywhere, the Provider is not passing anything down through the app structure (Im guessing this is why the store isn't accessible). I created this dummy app for testing but as I said, I need help getting the it working.

What is the "best practise" approach to react-router-dom and redux? I guess the question I need answered is, now do I access the store from the Tacos component?