Twitter | Search | |
This is the legacy version of twitter.com. We will be shutting it down on 15 December 2020. Please switch to a supported browser or device. You can see a list of supported browsers in our Help Center.
Brandon Bloom 16 Sep 16
Does the first createElement call win? Or the first onComponentMount? Shouldn't mounting logic commute for diffs?
Reply Retweet Like
Brandon Bloom 16 Sep 16
The API seems like a desire to JSX-ALL-THE-THINGS and claims its "declarative" when really it is just "indirect".
Reply Retweet Like
Sebastian Markbåge 16 Sep 16
I get that and I'm not sure this make sense for all control Flow. However it is at the same time more modular.
Reply Retweet Like
Sebastian Markbåge 16 Sep 16
because the code for determining whether to redirect is often coupled to the selection of a view and share data
Reply Retweet Like
Brandon Bloom 16 Sep 16
(will drop ) Sure, but _meet at data_, don't cram it all in to the render method.
Reply Retweet Like
Johnny Cache 16 Sep 16
The "imperative actions as JSX" jury is still out. Many don't like it
Reply Retweet Like
Johnny Cache 16 Sep 16
Reply Retweet Like
Johnny Cache 16 Sep 16
The question I'm interested in is: how can we close the gap between static program and dynamic process?
Reply Retweet Like
Johnny Cache 16 Sep 16
I want my render() method to be as readable as possible. So I can predict exactly what will happen when I run it
Reply Retweet Like
Brandon Bloom 16 Sep 16
Replying to @mjackson @sebmarkbage
The "throw" viewpoint is that instead of "redirect", you "fail" and somebody recovers from that failure.
Reply Retweet Like
Sebastian Markbåge 16 Sep 16
React really makes more sense as a language feature. It's a language in user space which leads to this.
Reply Retweet Like
Sebastian Markbåge 16 Sep 16
Weird discrepancy between the React stack and normal stack. Should be easiee to build libs into langs
Reply Retweet Like
Brandon Bloom 16 Sep 16
Replying to @sebmarkbage @mjackson
Precisely. Decouple effect from handling of it. Don't prescribe solution at point of failure.
Reply Retweet Like
Sebastian Markbåge 16 Sep 16
Replying to @BrandonBloom @mjackson
Interestingly enough I believe that is actually how it works for the server rendering if my feedback made it.
Reply Retweet Like