gluestick-plugin-radium
v4.6.6
Published
Plugin for supporting Radium in GlueStick project
Downloads
48
Keywords
Readme
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",
},
};