I am using typescript to write redux application.
var item = React.createClass({
render: function() {
return (<div>hello world</div>)
}
});
export default class ItemList extends Component<any, any> {
render() {
return (<item />)
}
}
Then typescript complains this:
Property 'item' does not exist on type 'JSX.IntrinsicElements'.