React integration
To use JSX with React you should use the React typings. These typings define the JSX
namespace appropriately for use with React.
/// <reference path="react.d.ts" /> interface Props { foo: string; } class MyComponent extends React.Component<Props, {}> { render() { return <span>{this.props.foo}</span> } } <MyComponent foo="bar" />; // ok <MyComponent foo={0} />; // error
Please login to continue.