mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Use correct cases for type reference * Add missing dependency on jquery * Switch to module and add tslint * Fix failing test * Fix triple-slash reference * Remove reference to `__React` * Add import for react-native * Add missing react import * Switch to module * Switch to module, add react import * Make sure test is resilient to lib changes
22 lines
508 B
TypeScript
22 lines
508 B
TypeScript
import * as React from "react"
|
|
import { StatelessComponent } from "react"
|
|
import { render } from "react-dom"
|
|
import { default as reactCSS, hover, loop, LoopableProps, HoverProps } from "reactcss"
|
|
|
|
interface TestProps extends HoverProps { }
|
|
|
|
var styles: any = reactCSS({
|
|
default: {},
|
|
hover: {}
|
|
}, { hover: true })
|
|
|
|
var loopProps: LoopableProps = loop(1, 10)
|
|
|
|
var TestComponent: StatelessComponent<TestProps>
|
|
var Test = hover(TestComponent)
|
|
|
|
render(
|
|
<Test />,
|
|
document.getElementById("main")
|
|
)
|