New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-jsss

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-jsss

Integrate JSSS CSS preprocessor into React.js components

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

React JSSS

Build Status Dependency Status

React JSSS is JavaScript based styler for React components inspired by React Style and JSSS-Compiler.

Installation

$ npm install react-jsss

Usage

Define styles using JavaScript:

var ReactJsss = require('react-jsss')

var styles = ReactJsss({
  color: 'red',
  backgroundColor: 'white'
})

Style React components:

var React = require('react')

var HelloWorld = React.createClass({

  render() {
    var dynamicStyles = ReactJsss({color: this.props.color})
    return React.createElement('div', {styles: [styles, dynamicStyles]}, 'Hello, world!')
  }
})

Or register tag style:

ReactJsss.registerTagStyle('div', {fontSize: '2em'})

Now render application styled:

ReactJsss.inject()
React.renderComponent(
  React.createElement(HelloWorld, {color: 'red'}),
  document.body
)

FAQs

Package last updated on 05 Apr 2015

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