mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
21 lines
525 B
TypeScript
21 lines
525 B
TypeScript
import * as React from 'react';
|
|
import DocumentTitle from 'react-document-title';
|
|
|
|
class TitleTest extends React.Component<any, any> {
|
|
render() {
|
|
return <DocumentTitle title="Test" />;
|
|
}
|
|
}
|
|
|
|
class TitleTestOneChild extends React.Component<any, any> {
|
|
render() {
|
|
return <DocumentTitle title="Test">A Child</DocumentTitle>;
|
|
}
|
|
}
|
|
|
|
class TitleTestOneReactChild extends React.Component<any, any> {
|
|
render() {
|
|
return <DocumentTitle title="Test"><div>A Child</div></DocumentTitle>;
|
|
}
|
|
}
|