0.1.0 • Published 10 years ago

react-postcss v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 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

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago