zamarrowski / Curso-React-Testing-GraphQL

Curso React, testing y GraphQL
36 stars 21 forks source link

Ejemplo de componente wrappeado #19

Closed zamarrowski closed 4 years ago

zamarrowski commented 4 years ago
import Btn from './../Btn/Btn'
import styled from 'styled-components'

const MiBtn = styled(Btn)`

    ${props => props.primary && css`
        color: green;
    `}
`

export default props => {

    return(
        <MiBtn {...props} />
    )

}