import Button from './button' export default class FloatingActionButton extends PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, message: PropTypes.string.isRequired, } shouldComponentUpdate(nextProps) { return nextProps.message !== this.props.message } render() { const { onClick, message } = this.props return (