Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import React from "react";
  2. import "./App.css";
  3. class FinalList extends React.Component {
  4. render() {
  5. return (
  6. <div>
  7. <div>{this.props.title}</div>
  8. <div>{this.props.name}</div>
  9. </div>
  10. );
  11. }
  12. }
  13.  
  14. export default FinalList;
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. import React from "react";
  30. import "./App.css";
  31. class Product extends React.Component {
  32. render() {
  33. return (
  34. <div>
  35. <div>{this.props.name}</div>
  36. <button onClick={e => this.props.onClick(this.props.id)}>
  37. {this.props.symbol}
  38. </button>
  39. </div>
  40. );
  41. }
  42. }
  43.  
  44. export default Product;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement