dillon1000/react

Commit

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.
Browse files
Changed paths3 files
First-parent comparison
M src/renderers/shared/reconciler/ReactCompositeComponent.js ModifiedM src/renderers/shared/reconciler/ReactUpdateQueue.js ModifiedA src/renderers/shared/reconciler/__tests__/ReactStatelessComponent-test.js Added
Patch

Files changed

Rendering syntax-highlighted changes…