New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fela-styles-connector

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-styles-connector

Allows to connect a fela styles object to a react component

6.0.1
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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)

FAQs

Package last updated on 09 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts