1: Can a react person explain something to me? People say that higher order components are faster than render props because they avoid
You made two classes either way, no? The wrapping component and the one it's calling.
-
-
Yes, I'm also confused. These discussions probably missing React-specific stuff like shouldComponentUpdate optimization.
-
So it seems like a potential cost is not in additional closure but in wasted work in children's render method.
-
Maybe it would be useful if a render function could return its own sCU based on what dynamically happened?
-
Nah, it's all fuzz imho, in 99% of cases it doesn't matter. Don't put long running code into render method and you are good to go.
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.