dillon1000/react
Commit
Browse files Minimal implementation of stateless components
Stateless pure-function components give us more opportunity to make performance optimizations. For now, we'll do a minimal implementation which has similar performance characteristics to other components in the interests of shipping 0.14 and allowing people to begin writing code using this pattern; in the future we can refactor to allocate less and avoid other unnecessary work.
Changed paths3 files
First-parent comparisonsrc/renderers/shared/reconciler/ReactCompositeComponent.js ModifiedM src/renderers/shared/reconciler/ReactUpdateQueue.js ModifiedA src/renderers/shared/reconciler/__tests__/ReactStatelessComponent-test.js AddedPatch
Files changed
Rendering syntax-highlighted changes…