dillon1000/react

Commit

Pass context to the constructor

This should reenable reading this.context from getInitialState.

Added a bunch of tests for this too.
Browse files
Changed paths5 files
First-parent comparison
M src/classic/class/ReactClass.js ModifiedM src/classic/class/__tests__/ReactClass-test.js ModifiedM src/core/ReactCompositeComponent.js ModifiedM src/modern/class/ReactComponentBase.js ModifiedM src/modern/class/__tests__/ReactES6Class-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…