react-cauldron
Version:
We have a library of components to display that you can expand on. We provide basic props and you can add in any extra props you wish.
22 lines (18 loc) • 382 B
JavaScript
import React, { PropTypes } from 'react';
/**
* A header level 4 component
*/
export default class H4 extends React.Component {
/**
* pass in a `title` (string) prop to display a title
* @return {ReactElement}
*/
render() {
return (
<h4>{this.props.title}</h4>
)
}
};
H4.PropTypes = {
title: React.PropTypes.string
};