React peeps: why not use function syntax for higher order components? Why are they components at all and not functions?
-
-
how is this any more readable once you are familiar with JSX?
-
both types of composition are generalizable. making a utility/lib for this is cake.
End of conversation
New conversation -
-
-
how so? this has same issue as the JSX, too much indentation, and arguments aren't even named
-
we use HOCs in a lot of places, for example react-redux's connect is HOC, but context providers tend to be components
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
