News for hackers. Stuff that matters.
Re:React 0.14 Release Candidate by tolmasky on Thursday September 10, 2015 @03:10PM (#10199929)
Stateless function components are definitely super exciting (we had been faking this with just Component(function() { return .. }). I'm interested how it handles shouldComponentUpdate though. We do some interesting things in there to deal with cursors, etc, so it would be nice to be able to get into the standard shouldComponentUpdate.
Re:React 0.14 Release Candidate by k__ on Thursday September 10, 2015 @03:16PM (#10199969)
Yes. The function components are awesome.

I use Redux, where all the state tickles down through the props, so I can probably remove a huge chunk of boilerplate in my apps.

Re:React 0.14 Release Candidate by Tankenstein on Thursday September 10, 2015 @03:39PM (#10200112)
"I use Redux, where all the state tickles down through the props" Isn't that just flux, or even just good React practice?
Re:React 0.14 Release Candidate by pluma on Thursday September 10, 2015 @05:53PM (#10200780)
It's good React practice, but it's not really Flux. A lot of Flux/Flux-inspired frameworks have components actively listen to global stores.
Re:React 0.14 Release Candidate by dustingetz on Thursday September 10, 2015 @03:25PM (#10200015)
> so it would be nice to be able to get into the standard shouldComponentUpdate

Is there such thing? You at least need to choose between value and ref equality for various props?

Also not clear to me if these functions are turned into full React components with lifecycle methods and async rendering, or are just synchronously invoked in the same render stack frame as the closest up-stack actual React component.