Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Rosenwasser
8c3beecc8f Fixed up declarations for ReactDOMServer. 2016-10-12 01:00:49 -07:00
Stevi Deter
c34251f96b Types 2.0 ReactDom.render (#10206)
* For ReactDOM.render, make element parameter nullable to match React API and match Typescript 2.0 definition for Document.getElementById

* one more test
2016-07-23 23:38:28 -07:00
Ryan Cavanaugh
a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
phiresky
084926e23a
react: Add target type to events
this allows getting the actual html element type from events.

Example:

```ts
render() {
    return <input onChange={e => console.log(e.target.value)}/>
}
```

Previously you would have to cast the target manually:
```ts
render() {
    return <input onChange={e => console.log((e.target as
    HTMLInputElement).value)}/>
}
```
2016-07-03 20:23:20 +02:00
Raghav Katyal
395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Ryan Cavanaugh
c81e98756b Split out react-dom 2016-05-11 16:33:03 -07:00
Ryan Cavanaugh
72a319137e Split out react addons 2016-05-11 16:32:53 -07:00
James Brantly
9cdf3bd4ae Remove react-dom folder (based on discussion in #5828) 2015-11-05 07:41:55 -05:00
Anton Fomin
d1575654c1 Update react-dom.d.ts
It wasn't usable.

import React = require("react");
import ReactDOM = require("react-dom");

// console.log(form.ContactForm);

ReactDOM.render(React.createElement(form.ContactForm), document.getElementById("four"));

Compilation error
 error TS2339: Property 'render' does not exist on type 'typeof __ReactDom'.
2015-10-10 09:25:54 +02:00
Stefan B
90a301c5ae modify header 2015-09-15 12:32:52 +03:00
Stefan B
354b00ab6c modify header 2015-09-15 12:31:36 +03:00
Stefan B
2ee9d92039 add Definitions by 2015-09-15 12:28:20 +03:00
Stefan B
0380b3bc26 add header 2015-09-15 12:25:25 +03:00
Stefan B
255c6232a0 add module react-dom 2015-09-15 12:17:39 +03:00