react-flaxs
Connect Flaxs implementation with your React application.
Connect Decorator
Simple way to connect to the master store in flaxs using a decorator pattern:
; @Component
You can redefine the final props of your component based on the given props using a second connect function.
Example, let's say that if you want your component ConnectedComponent
to ignore the somethingElse
state if you specify a ignore
attribute in the parent component using this form:
@
Here an example:
// ParentComponent<ConnectedComponent ignore=true /> // ConnectedComponent; @Component
Multi Connect Decorator
If you are connecting states from stores outside the master store, then you might need a multiConnector
(currently not available)
; @Component
You can specify the final props of your component based on the given props using a second connect function as a third parameter.
@