# CSS-as-React-component **Repository Path**: mirrors_xtuc/CSS-as-React-component ## Basic Information - **Project Name**: CSS-as-React-component - **Description**: Transform CSS code into React components - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-04-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CSS as React component [![Greenkeeper badge](https://badges.greenkeeper.io/xtuc/CSS-as-React-component.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/xtuc/CSS-as-React-component.svg?branch=master)](https://travis-ci.org/xtuc/CSS-as-React-component) ## Goal Transform CSS code into React components or at least an attempt to it. I'm trying to find a handy way to use CSS in components (particuliary intended to server-side rendering). ## Usage ```shell npm install ``` ```shell ./bin/index [filename.css] > components.js ``` `components.js` will contain the generated React components. ## Example ```css .link { color: blue; } ``` ```js class Base extends React.Component { … } export class Link extends Base { style = {"color":"blue"} } ``` ```jsx import { Link } from '…'; Test link ``` ## Roadmap ### Version 1 * [ ] Support CSS child selectors * [ ] Support CSS pseudo-classes