mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-11 19:42:23 +08:00
according to TS documentation template: https://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-class-d-ts.html
17 lines
328 B
TypeScript
17 lines
328 B
TypeScript
import * as React from "react";
|
|
import * as ReactDOM from "react-dom";
|
|
import FontAwesome = require('react-fontawesome');
|
|
|
|
class TestComponent extends React.Component {
|
|
render() {
|
|
return (
|
|
<FontAwesome
|
|
className='super-crazy-colors'
|
|
name="rocket"
|
|
size="2x"
|
|
spin
|
|
/>
|
|
);
|
|
}
|
|
}
|