* Add getSnapshotBeforeUpdate test for React.createElement
* Add test for using component with new lifecycles
* Add test for pure component with new lifecycle methods
* Chage react snapshot SS to default to any
* Add new RenderProps-style Context from React 16.3
React 16.3 has a new recommended API for Context, with new Context, Provider, and Consumer typings.
* Add overload for createContext() to be called with no arguments
* Fix syntax
* Refactor out Props for Consumer & Provider
* [React] Remove string index fallback for CSS properties (resolves#24568)
* Require a minimum version of 2.2 for csstype
* Fix aphrodite types
* Fix react-confirm test
* Use Omit
* Fix react-geosuggest types
* Fix victory test
* Make customStyle and customStyleOnEditCell into functions
* feat(react): add forwardRef and createRef functions
* fix(tests): fix failing tests
- datepicker needs to be updated to use optional generic types since it was using ClassAttributes incorrectly
* Added `placeholder` to the list of standard attributes, to allow its use on contentEditable <div> elements.
* Added placeholder for use in contentEditable elements in React.
* [react] Workaround for --strictFunctionTypes
Under --strictFunctionTypes, when assigning a class with `getDerivedStateFromProps` to `React.ComponentClass` or `React.ComponentType`, the type of the second argument was expected to be `Readonly<any>`, which is, actually, the same as `Readonly<{}>`.
This was preventing using classes that try to refer to the previous state in `getDerivedStateFromProps` from being given to HOC factories.
There are no tests as testing this change is only possible with `--strictFunctionTypes`, and the `tsconfig.json` here specifically disables it. Perhaps another PR should enable it.
* Add a test anyway
Though it wouldn't have failed unless `--strictFunctionTypes` were enabled.
* Fix lint error on the test
* Add new lifecycle events to React (16.3)
* Add tests, fix lint
* Bump version
* Improve inference of snapshot
* Improve tests
* Correctly support returning partial state from getDerivedStateFromProps
* Remove redundant type
* Fix lint error
* Write the incorrect subclassing test in a more verbose way
Allow setState to accept an updater which is null or is a function that
may return null.
In React 16, passing null to setState or returning null from the updater
function does not cause an update.
* [react] Use HTMLDialogElement for the dialog node
* Actually add the `open` property
* This update requires typescript 2.6
* Update dependents of react to also require typescript 2.6