mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
543 B
TypeScript
23 lines
543 B
TypeScript
import * as React from 'react';
|
|
import DocumentMeta from 'react-document-meta';
|
|
|
|
class Test extends React.Component<any, any> {
|
|
render() {
|
|
return (
|
|
<DocumentMeta title="title" description="description" canonical="canonical" >
|
|
<div>some child</div>
|
|
</DocumentMeta>
|
|
);
|
|
}
|
|
}
|
|
|
|
class TestWithDefaultProps extends React.Component<any, any> {
|
|
render() {
|
|
return (
|
|
<DocumentMeta>
|
|
<div>some child</div>
|
|
</DocumentMeta>
|
|
);
|
|
}
|
|
}
|