Label.js
308 Bytes
import React, { PropTypes } from 'react'
const Label = props => (
<label>
{props.children} {' '}
{props.required && (
<span className="text-danger">*</span>
)}
</label>
)
Label.propTypes = {
children: PropTypes.string.isRequired,
required: PropTypes.bool,
}
export default Label