2018-06-25
2093
#react
JuanMa Garrido
224
Jun 25, 2018 â‹… 7 min read

Using Recompose to write clean higher-order components

JuanMa Garrido Freelance JavaScript full-stack developer and trainer | Frontend specialist | From Murcia with love

Recent posts:

Understanding Security In React Native Applications

Understanding security in React Native applications

Explore the various security threats facing React Native mobile applications and how to mitigate them.

Wisdom Ekpotu
Mar 27, 2024 â‹… 10 min read
Warp Adoption Guide: Overview, Examples, And Alternatives

warp adoption guide: Overview, examples, and alternatives

The warp web framework for Rust offers many enticing features. Let’s see when and why you should consider using warp in your projects.

Ukeje Goodness
Mar 26, 2024 â‹… 8 min read
Integrating Next Js And Signalr For Enhanced Real Time Web App Capabilities

Integrating Next.js and SignalR to build real-time web apps

In this tutorial, you’ll learn how to integrate Next.js and SignalR to build an enhanced real-time web application.

Clara Ekekenta
Mar 25, 2024 â‹… 8 min read
Exploring Tailwind Oxide

Exploring Tailwind Oxide

Tailwind Oxide was introduced to address common issues that exist with Tailwind CSS, such as the complex setup process.

Marie Starck
Mar 22, 2024 â‹… 5 min read
View all posts

5 Replies to "Using Recompose to write clean higher-order components"

  1. Excellent article JuamMa and good examples. However, I think you may have forgot to change the code for withHandlerClick.js, as it looks the same as withStateTimes.js unless I have misread it…

  2. looks like there is some copy/paste code errors… look at this file you pasted: withHandlerClick.js (it is not the correct one)

  3. Thanks for the article! It’s very useful if you hear about recompose the first time! But you should mention somewhere that the recompose-library recommend to use hooks instead now. I see that this article is from 2018 and hooks were released in 2019 but this information would help a lot ! 🙂

    “Hi! I created Recompose about three years ago. About a year after that, I joined the React team. Today, we announced a proposal for Hooks. Hooks solves all the problems I attempted to address with Recompose three years ago, and more on top of that. I will be discontinuing active maintenance of this package (excluding perhaps bugfixes or patches for compatibility with future React releases), and recommending that people use Hooks instead. Your existing code with Recompose will still work, just don’t expect any new features. Thank you so, so much to @wuct and @istarkov for their heroic work maintaining Recompose over the last few years.”

    https://github.com/acdlite/recompose

Leave a Reply