mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Merge pull request #3 from isman-usoh/react-holder-1
Create react-holder-tests.tsx
This commit is contained in:
25
react-holder/react-holder-tests.tsx
Normal file
25
react-holder/react-holder-tests.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
// react-holder test
|
||||
|
||||
///<reference path="react-holder.d.ts"/>
|
||||
///<reference path="../react/react.d.ts"/>
|
||||
|
||||
import * as React from "react";
|
||||
import Holder from "react-holder";
|
||||
|
||||
export class ReactHolderTest extends React.Component<any, any> {
|
||||
public render() {
|
||||
return (
|
||||
<div>
|
||||
<Holder
|
||||
// width and height can be a number or a string
|
||||
width="100%"
|
||||
height="200px"
|
||||
|
||||
// default: false
|
||||
updateOnResize={true}
|
||||
className={'my-custom-class'}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user