Skip to content

Instantly share code, notes, and snippets.

@Sashkan
Created September 20, 2019 11:57
Show Gist options
  • Save Sashkan/1b41114938754444820e1ce90b03f3d5 to your computer and use it in GitHub Desktop.
Save Sashkan/1b41114938754444820e1ce90b03f3d5 to your computer and use it in GitHub Desktop.
Syled Button Component
import React from 'react'
import { withTheme } from 'styled-components'
import StyledButton from './index.styled'
class Button extends React.Component {
render() {
try {
return (
<StyledButton {...this.props} onclick={this.props.onClick} />
)
} catch (e) {
console.log('atom - Button', e)
return null
}
}
}
export default withTheme(Button)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment