Skip to content

Commit

Permalink
feat(Hello): add Hello component
Browse files Browse the repository at this point in the history
  • Loading branch information
kiki-le-singe committed Sep 8, 2016
1 parent 11685be commit fb4c54a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/common/components/Hello/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import React, { PropTypes } from 'react'

const propTypes = {
name: React.PropTypes.oneOfType([
PropTypes.string,
PropTypes.element
])
}
const defaultProps = {
name: ''
}

function Hello(props) {
return <div>Hello {props.name}</div>
}

Hello.propTypes = propTypes
Hello.defaultProps = defaultProps

export default Hello

0 comments on commit fb4c54a

Please sign in to comment.