Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mungell/react-postcss

Simple style tag for React
https://github.com/mungell/react-postcss

css-in-js experimental postcss react

Last synced: about 2 hours ago
JSON representation

Simple style tag for React

Awesome Lists containing this project

README

        

# react-postcss

[![Build Status](https://travis-ci.org/MunGell/react-postcss.svg)](https://travis-ci.org/MunGell/react-postcss)

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

## How to use

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

render: function () {
return (


{this.style()}

Button


)
}
```

## PostCSS

This component uses [PostCSS](https://github.com/postcss/postcss).
You can use any plugins from [postcss.parts](http://postcss.parts/) website.