Considering doing: <Component state={state.compState} onState={(state) => this.setState({compState: state})} />. Any alternate patterns?
-
-
I think this is only cumbersome when you don't really know the state shape yet and don't want to add/rename props every 5 minutes
-
So at that stage I'd pass one callback but later break it apart as soon as I know what I'm doing
- 2 more replies
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 