[react] add forwardRef and createRef functions for React v16.3 (#24624)

* 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
This commit is contained in:
Ferdy Budhidharma
2018-04-10 10:22:57 -07:00
committed by Mohamed Hegazy
parent 5515e867df
commit 130f2eec2f
4 changed files with 33 additions and 5 deletions
@@ -11,7 +11,7 @@ interface State {
bar: number;
}
const props: Props & React.ClassAttributes<{}> = {
const props: Props = {
foo: "foo"
};