Advertisement
Manonimova

responsemsg.js

Sep 8th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component } from 'react';
  2. import PropTypes from 'prop-types';
  3.  
  4. class ResponseMsg extends Component {
  5.     render() {
  6.         return (
  7.             <div className="response-msg" style={{color: this.props.color}}>
  8.                 {this.props.responseMsg}
  9.             </div>
  10.         );
  11.     }
  12. }
  13.  
  14. ResponseMsg.propTypes = {
  15.     color: PropTypes.string,
  16.     responseMsg: PropTypes.string
  17. };
  18.  
  19. export default ResponseMsg;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement