Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

moses89 May 17th, 2020 396 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component } from 'react'
  2. import {Task} from "./Task"
  3.  
  4. export class TaskList extends Component {
  5.  
  6.     getTasks = ()=>{
  7.     //This suppose to get data from db and set it to state property.
  8.     return data;
  9.     }
  10.  
  11.     render() {
  12.         return (
  13.             <div>
  14.  
  15.             <Task/>
  16.            
  17.            
  18.  
  19.  
  20.             </div>
  21.         )
  22.     }
  23. }
  24.  
  25. const data=[
  26.  {
  27.      id:1,
  28.      desc:"Take the trash out",
  29.      completed:false
  30.  },
  31.  {
  32.     id:2,
  33.     desc:"Charge the phone",
  34.     completed:false
  35. },
  36. {
  37.     id:3,
  38.     desc:"build react app",
  39.     completed:false
  40. },
  41. {
  42.     id:4,
  43.     desc:"publish article",
  44.     completed:false
  45. },
  46. {
  47.     id:5,
  48.     desc:"make colors",
  49.     completed:false
  50. },
  51. {
  52.     id:6,
  53.     desc:"deploy",
  54.     completed:false
  55. }
  56.  
  57.  
  58. ];
  59.  
  60. export default TaskList
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top