Title.js 299 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import React, { Component } from 'react'; import './Title.css'; class Title extends Component { render() { return ( <div className="title"> <h2>{this.props.headline}</h2> {this.props.children} </div> ); } } export default Title; // vim: set ts=2 sw=2 et: