Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import './App.css';
  3. // import CelebList from './components/CelebList';
  4. import { Button } from 'reactstrap';
  5. import Contact from "./contacts.json"
  6. import { Table } from "reactstrap";
  7.  
  8.  
  9.  
  10. const CelebItem = ({ blah }) => {
  11. return (
  12. <tr>
  13. <td>
  14. <img src={blah.pictureUrl} width='100' height='150' alt='' />
  15. </td>
  16. <td>{blah.name}</td>
  17. <td>{blah.popularity}</td>
  18. </tr>
  19. )
  20. }
  21.  
  22.  
  23. const CelebList = () => {
  24. return (
  25. <Table>
  26. <thead>
  27. <tr>
  28. <th>Picture</th>
  29. <th>Name</th>
  30. <th>Popularity</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34.  
  35. </tbody>
  36. </Table>
  37. )
  38. }
  39.  
  40.  
  41. class App extends Component {
  42.  
  43. constructor(props) {
  44. super(props);
  45. this.state = {
  46.  
  47. }
  48. }
  49.  
  50.  
  51. render() {
  52. console.log('render is running')
  53.  
  54. return (
  55. <div>
  56.  
  57.  
  58.  
  59. </div>
  60. )
  61. }
  62.  
  63. }
  64.  
  65.  
  66.  
  67. export default App
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement