Re:React 0.14 Release Candidate
by wereHamster on Thursday September 10, 2015 @04:28PM
(#10200352)
That was possible with earlier versions of react, with slightly different syntax:
I've come across many projects which defined lots of small react classes, usually with a one or two line render body, which would be better served as simple functions.
[ Parent
| on HN ]
Re:React 0.14 Release Candidate
by dustingetz on Thursday September 10, 2015 @04:37PM
(#10200397)
Sort of, those functions aren't components, so they don't render async and don't have lifecycle methods or shouldComponentUpdate. (Also unclear if these new function components are actually components)