I have a React application which also uses Recompose and Redux.
Both of them has a compose
function with very similar content:
As far as they both do the same, I'd like to have only one module in my bundle.
Is there any known possible issue if I would like to use compose from redux to compose high order components from recompose
?
Semantically, they're both absolutely the same. But don't do it.
I would argue against replacing one's library function with another. Let's say you use redux's compose instead of recompose's compose.
If the author of recompose updates his compose function and is different from redux, you lose.
If the author of redux updates his compose and it is not compatible with recompose, you lose.
If you decide to get rid of redux or recompose, you lose.
I would rather have more modules and keep my libraries decoupled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With