mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
[next] stateless -> class
This commit is contained in:
@@ -12,7 +12,7 @@ class ClassNext extends React.Component<NextComponentProps> {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>I'm a stateless component! {this.props.example}</div>
|
||||
<div>I'm a class component! {this.props.example}</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user