Skip to content

Instantly share code, notes, and snippets.

@antoniopresto
Created May 3, 2018 12:21
Show Gist options
  • Save antoniopresto/cb8e99efc68c01041c739e58543b91be to your computer and use it in GitHub Desktop.
Save antoniopresto/cb8e99efc68c01041c739e58543b91be to your computer and use it in GitHub Desktop.
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
const ${NAME}Wrapper = styled.div``
class ${NAME}Component extends Component {
static propTypes = {
children: PropTypes.any,
}
render() {
return (
<${NAME}Wrapper classNAME="${NAME}__${NAME}Wrapper">
{this.props.children}
</${NAME}Wrapper>
)
}
}
export const ${NAME} = ${NAME}Component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment