import React from 'react'; import classNames from 'classnames'; interface Props { type: string; onClick: () => void; } export class Notification extends React.Component { public renderContents() { const { type } = this.props; return Notification of type {type}; } public render() { const { onClick } = this.props; return (
{this.renderContents()}
); } }