Is it good or bad practice having the child composable providing an element to parent? E.g. a content providing an action to be placed in the toolbar. The intention is to avoid hoisting state from child and allow the reuse of the parent.
z
Zach Klippenstein (he/him) [MOD]
09/07/2021, 2:27 PM
Why do you want to avoid hoisting state? It’s a useful pattern with a few advantages. Also what do you mean by reusing the parent?
Anyway this sounds like a bad idea to me, just hoist the toolbar state.