Considering doing: <Component state={state.compState} onState={(state) => this.setState({compState: state})} />. Any alternate patterns?
-
-
Looks fine to me for rapid prototyping, you can always break them apart later
-
I'm just hesitant because I'm imagining a case where you'd want more finegrained control over the state updating :/
- 4 more replies
New conversation -
-
-
Isn't this what {...props} is for though? Just a React novice, forgive my ignorance!
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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 