❄️Fancy: A simple way to include CSS with React Components.
MIT License
A simple way to include CSS with React Components.
npm install --save @helpscout/fancy
Here's a quick example of how you can compose regular CSS with your React components.
import React from 'react'
import styled from '@helpscout/fancy'
const Button = props => {
const { children, styles, ...rest } = props
<button className={styles.Button} {...rest}>
{children}
</button>
}
export default styled(Button)`
background: white;
border: 1px solid #eee;
`
View the docs to get started with Fancy!
Many thanks to the folks who built Emotion and Styled Components.