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.
- 2 more replies
New conversation -
-
usually we address this by passing a function returning the subtree as a prop
-
That's what I'd do. <MenuItem renderActive={something => <Dropdown />} />
- 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 