FormidableLabs / redux-little-router

A tiny router for Redux that lets the URL do the talking.
MIT License
1.04k stars 114 forks source link

Documentation Questions #187

Closed tracker1 closed 7 years ago

tracker1 commented 7 years ago

Just curious if the components work with preact, or if they require preact-compat?

Also, do I still need react-redux <Provider store> with <RouterProvider store> or is it already a composite?

Edit: if a separate provider is needed, maybe you could reuse the react-redux provider, or expose the store the same way the react-redux provider does, so that only one provider component is needed?

baebb commented 7 years ago

@tracker1 for your 2nd question: you no longer need RouterProvider as of 13.2, just do your Provider like normal:

<Provider store={store}>
    <YourDankApp />
  </Provider>
tptee commented 7 years ago

Hi @tracker1 ! On a quick glance, it looks like preact-compat is necessary since we import React from 'react'. Let me know if you run into any issues with it!