What @reactjs patterns are there to prevent building subtrees of components that aren't used and are tossed away?
-
-
Make the subtree a stateless functional component instead of inlining it.
-
It won't be called if it doesn't end up in the tree. That's the benefit of lazy evaluation.
- 1 more reply
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.
he/him 