import React, { Component } from "react" import PropTypes from "prop-types" export default class Clear extends Component { onClick =() => { let { specActions, path, method } = this.props specActions.clearResponse( path, method ) specActions.clearRequest( path, method ) } render(){ return ( ) } static propTypes = { specActions: PropTypes.object.isRequired, path: PropTypes.string.isRequired, method: PropTypes.string.isRequired, } }