3 ms·
React v0.14 adds "stateless functional components" syntax, which essentially makes your external-template.tsx a valid component on its own (with the caveat that
by tlrobinson 11y ago
React v0.14 adds "stateless functional components" syntax, which essentially makes your external-template.tsx a valid component on its own (with the caveat that no state or lifecycle methods are allowed): https://facebook.github.io/react/blog/2015/10/07/react-v0.14.html https://facebook.github.io/react/blog/2015/10/07/react-v0.14...
- tracker1 11y agoThere seems to be progression into breaking apart components that have decision trees with components that are simply rendered... I've had a tendency to favor this myself. Also, simple components can defer events to prop/parent binding.