Allows to connect a fela styles object to a react component
Switch branches/tags
Nothing to show
Clone or download
Hoffner, Dustin Hoffner, Dustin
Hoffner, Dustin and Hoffner, Dustin Quick fix
Latest commit 02fd04c Jul 1, 2016
Permalink
Failed to load latest commit information.
lib Quick fix Jul 1, 2016
src Quick fix Jul 1, 2016
.gitignore Initial commit Jun 24, 2016
LICENSE Initial commit Jun 24, 2016
README.md Initial Commit Jun 24, 2016
index.js Initial Commit Jun 24, 2016
package.json Quick fix Jul 1, 2016

README.md

fela-styles-connector

Allows to connect a fela styles object to a react component

This is just a little helper for fela.

Usage

import React, { PropTypes, Component } from 'react'
import felaStylesConnector from 'fela-styles-connector'

const style = {
  header: {
    color: 'red'
  },
  title: {
    fontSize: 42
  }
}

var connect = felaStylesConnector(style)

class Header extends Component {
  render() {
    const {data, actions, styles} = this.props
    return (
      <header className={ styles.header }>
        <span className={ style.title }>My Title!</span>
      </header>
    )
  }
}

export default connect(Header)