import React from 'react';

const TextBlock = (props) => (
  <div className="container">
    <h4 className="heading">{props.title}</h4>
    <p>{props.content}</p>
  </div>
);


export default TextBlock;

import React from 'react';
import PropTypes from 'prop-types';

const TextBlock = props => (
  <div className="container">
    <h4 className="heading">{props.title}</h4>
    <p>{props.content}</p>
  </div>
);

TextBlock.propTypes = {
  title: PropTypes.string.isRequired,
  content: PropTypes.string.isRequired,
};


export default TextBlock;

Add proptype validation to TextBlock
Add proptype validation to TextBlock
