Last active
November 21, 2018 00:32
-
-
Save ReidWilliams/b588de58c2a4df0f048c47145c40474d to your computer and use it in GitHub Desktop.
React + styled-components template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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