I'm reading this react article and I think its pretty sweet and will show some problems that we encounter in compose soon enough. https://epicreact.dev/one-react-mistake-thats-slowing-you-down/
I'm new to react, but I know more react than compose. In the article above is "context" in react similar to Ambients in compose world?
09/26/2020, 3:18 AM
Yep. All of the advice here applies for the same reasons. Using composable lambdas passed to your composable functions yields the same benefits described here and removes a lot of the reasons to reach for ambients in the same way.
The compose-material Scaffold function works this way
And this is what I'm referring to in a bunch of the discussions in the scrollback of this channel when I've talked about using the lexical scope rather than ambients or prop drilling 🙂
09/26/2020, 6:50 AM
Awesome! @Adam Powell COMPOSE IS STARTING TO MAKE SENSE TO ME!
@spierce7 you might find this helpful also per what we were just talking about?