Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Latest commit

 

History

History
33 lines (29 loc) · 595 Bytes

File metadata and controls

33 lines (29 loc) · 595 Bytes

gluestick-plugin-radium

This plugin allows you to specify a set of tools to manage inline styles on React elements.

How to use

  • Install plugin
npm install --save gluestick-plugin-radium
  • Define (and configure) plugin in src/gluestick.plugins.js:
export default [
  'gluestick-plugin-radium'
]

Example usage

import React, { Component } from "react";

export default class Home extends Component {
  render () {
    return (
        <div style={styles.base}>Home</div>
    );
  }
}

const styles = {
  base: {
    color: "blue",
  },
};