cssinjs / styled-jss

Styled Components on top of JSS.
http://cssinjs.org/styled-jss
MIT License
217 stars 25 forks source link

Resolve #39, support React Components composing #45

Closed lttb closed 6 years ago

lttb commented 6 years ago

From #39

import React from 'react'
import styled from 'styled-jss'

const Test = (props) => <h1 {...props}>test</h1>;

const StyledTest = styled(Test)({
  padding: 40,
  background: '#f7df1e',
  textAlign: 'center'
})

const Root = () => (
  <StyledTest />
)

export default Root
coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling c3577a6ffb01d055748bc2d25c1aba0d16b10540 on feature/compose-react-components into 319c17d1ac4dcf50bcb9262b344a4f9e2c3da097 on master.