Add Local State to a Functional Stateless Component using Recompose

Share this video with your friends

Send Tweet

Learn how to use the 'withState' and 'withHandlers' higher order components to easily add local state to—and create a reusable local state pattern for—your functional stateless components. No need for classes!

Aimn
Aimn
~ 7 years ago

Hi, thanks for this nice course. I was wondering how you can toggle the status with a transition.

shiny
shiny
~ 7 years ago

compose(h1, h2, h3) = h1(h2(h3(base))). can we change the order ?

shiny
shiny
~ 7 years ago

i'mean can we wirte like this :' compose (withHandles, withState) '