How to use the reactcss.loop function in reactcss

To help you get started, we’ve selected a few reactcss examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / reactcss / reactcss-tests.tsx View on Github external
// Imports
// --------------------------------------------------------------------------------
import * as React from "react"
import { StatelessComponent } from "react"
import { render } from "react-dom"
import { default as reactCSS, hover, loop } from "reactcss"

interface TestProps extends ReactCSS.HoverProps {}

var styles: any = reactCSS({
    default : {},
    hover   : {}
}, { hover : true })

var loopProps: ReactCSS.LoopableProps = loop(1, 10)

var TestComponent: StatelessComponent
var Test = hover(TestComponent)

render(
    ,
    document.getElementById("main")
)

reactcss

Bringing Classes to Inline Styles

MIT
Latest version published 7 years ago

Package Health Score

68 / 100
Full package analysis