0.1.0 • Published 9 years ago

react-postcss v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

react-postcss

Build Status

This repository contains proof-of-concept simple style tag component for React.

How to use

style: function() {
    return `
        .Container {
            &__button {
                color: red;
                background-color: black;
            }
        }
    `;
},

render: function () {
    return (
        <div className="Container">
            <Style plugins={[postcssNested, autoprefixer]}>{this.style()}</Style>
            <button className="Container__button">
                Button
            </button>
        </div>
    )
}

PostCSS

This component uses PostCSS. You can use any plugins from postcss.parts website.

0.1.0

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago