-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Labels
acceptedAccepted for developmentAccepted for developmentbugSomething isn't workingSomething isn't working
Description
It seems that passing properties doesn't work with Typescript. Does it only work if you're using the PropTypes package?
interface MyProps {
data: string
}
class App extends React.Component<MyProps, any> {
render() {
return (
<div className="App">
<p>
- Data: [{this.props.data}]
</p>
</div>
);
}
}
export default App;
chriszrc, vladan-dj and AsimNetchriszrc and rodsfreitas
Metadata
Metadata
Assignees
Labels
acceptedAccepted for developmentAccepted for developmentbugSomething isn't workingSomething isn't working