connect
Enhances react-redux's connect so that redux-rest-easy
knows which URLs have been requested by which components. If you have been using react-redux before, all you need to do for redux-rest-easy
to work is changing the import from
to
Arguments
(connectArgs): The same arguments as react-redux's connect. See connect arguments.
Returns
(component): A component, which will be exactly the same as it would have been if wrapped in react-redux's connect. See connect's return.
Example
This example demonstrates how to use connect
to wrap a simple component.
Tips
Selectors linked to a particular query need both
state
andownProps
. See selectors documentation.
Last updated