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'.
item
.item
with lowercase is a valid HTML element name. Custom Elements can all be lowercase elements just like the intrinsic ones. – Legalityitem
. Custom elements must contain-
a hyphen. link – Figurehead<blahblah>
and it will be there. But there's no way to register a<blahblah>
element. – Legality