You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar like the example above, but in a curried format. Useful when decorating a `Component` with many higher order components:
55
58
```js
56
-
compose(
59
+
exportdefaultcompose(
57
60
connect(mapStateToProps, mapDispatchToProps),
58
61
withRouter,
59
62
withMessages,
60
-
)(Component)
63
+
)(MyComponent)
61
64
```
62
65
Additionally, the curried form of `withMessages` accepts an optional `keyPefix` which will be prepended before any translation lookup key (see the examples below). This feature comes quite useful when i18n-ing scoped presentational components.
0 commit comments