Guest User

Untitled

a guest
Jan 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import React, { Component } from 'react';
  2.  
  3. class Card extends Component {
  4.  
  5. render() {
  6. return (
  7. <div className = "Card">
  8. <div style= {{backgroundColor : this.props.color}}className = "Card__title-container">
  9. <h6 className = "Card__title">
  10. {this.props.title}
  11. </h6>
  12. </div>
  13. <div className = "Card__text-container">
  14. <p className ="Card__text">
  15. {this.props.text}
  16. </p>
  17. </div>
  18. </div>
  19. );
  20. }
  21.  
  22. }
  23.  
  24. export default Card;
Add Comment
Please, Sign In to add comment