Skip to content

Instantly share code, notes, and snippets.

@ReidWilliams
Last active November 21, 2018 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ReidWilliams/b588de58c2a4df0f048c47145c40474d to your computer and use it in GitHub Desktop.
Save ReidWilliams/b588de58c2a4df0f048c47145c40474d to your computer and use it in GitHub Desktop.
React + styled-components template
import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
// locals
// import { theme } from 'styles'
const Root = styled.div``
class MyComponent extends React.Component {
render() {
const { className } = this.props
return (
<Root className={className}>
</Root>
)
}
}
MyComponent.propTypes = {
className: PropTypes.string
}
MyComponent.defaultProps = {
className: ''
}
export default MyComponent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment