Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react'
- import FixedDataTable from 'fixed-data-table'
- import TeachersTable from './Teacherstable'
- var data = [
- {
- "_id": "55be9f654fc6e869d1279dbe",
- "index": 0,
- "guid": "2cde01f2-277f-4730-8c99-4b07c0b729ff",
- "isActive": false,
- "balance": "$215.21",
- "picture": "http://lorempixel.com/64/64/people/0/",
- "age": 20,
- "name": {
- "first": "York",
- "last": "Gibson"
- },
- "company": "BARKARAMA",
- "email": "york.gibson@barkarama.org",
- "phone": "+1 (852) 428-3413",
- "address": "511 Butler Street, Kersey, Mississippi, 1986",
- "registered": "Friday, October 3, 2014 8:04 PM"
- },
- {
- "_id": "55be9f65d8fe86664a5e015e",
- "index": 1,
- "guid": "914c2951-7df2-4cfe-be6d-c4a3421e8b1f",
- "isActive": false,
- "balance": "$212.05",
- "picture": "http://lorempixel.com/64/64/people/1/",
- "age": 37,
- "name": {
- "first": "Helena",
- "last": "Robertson"
- },
- "company": "ZYTREK",
- "email": "helena.robertson@zytrek.us",
- "phone": "+1 (812) 508-3800",
- "address": "786 Seba Avenue, Fivepointville, Arkansas, 6488",
- "registered": "Sunday, September 7, 2014 11:02 AM"
- },
- {
- "_id": "55be9f65665e9dcde1eceecc",
- "index": 2,
- "guid": "620083fd-da65-4309-8666-92a8ec96a9f7",
- "isActive": false,
- "balance": "$689.41",
- "picture": "http://lorempixel.com/64/64/people/2/",
- "age": 33,
- "name": {
- "first": "Roth",
- "last": "Levine"
- },
- "company": "JUMPSTACK",
- "email": "roth.levine@jumpstack.ca",
- "phone": "+1 (945) 574-3812",
- "address": "716 Danforth Street, Garfield, Wyoming, 3868",
- "registered": "Wednesday, September 10, 2014 1:39 AM"
- },
- {
- "_id": "55be9f65e269c46ab1940733",
- "index": 3,
- "guid": "f230aebf-5ab0-4136-83fc-c4ec520374ac",
- "isActive": false,
- "balance": "$640.70",
- "picture": "http://lorempixel.com/64/64/people/3/",
- "age": 28,
- "name": {
- "first": "Edwards",
- "last": "Mccullough"
- },
- "company": "REALYSIS",
- "email": "edwards.mccullough@realysis.biz",
- "phone": "+1 (831) 519-2595",
- "address": "856 Middleton Street, Williamson, Massachusetts, 463",
- "registered": "Tuesday, March 17, 2015 3:57 AM"
- },
- {
- "_id": "55be9f6510d70b848d01f776",
- "index": 4,
- "guid": "643fdf5f-e101-43a3-b40e-d25a4aabb71e",
- "isActive": true,
- "balance": "$282.25",
- "picture": "http://lorempixel.com/64/64/people/4/",
- "age": 31,
- "name": {
- "first": "Erickson",
- "last": "Riggs"
- },
- "company": "EXTRO",
- "email": "erickson.riggs@extro.name",
- "phone": "+1 (921) 462-3783",
- "address": "284 Stuyvesant Avenue, Jugtown, Puerto Rico, 4455",
- "registered": "Tuesday, May 13, 2014 2:29 PM"
- },
- {
- "_id": "55be9f65a8096f7e13bc369c",
- "index": 5,
- "guid": "977ed1ec-88b1-45e4-96cb-6b740c823cc1",
- "isActive": true,
- "balance": "$434.79",
- "picture": "http://lorempixel.com/64/64/people/5/",
- "age": 21,
- "name": {
- "first": "Patty",
- "last": "Rivers"
- },
- "company": "BOLAX",
- "email": "patty.rivers@bolax.io",
- "phone": "+1 (810) 482-3302",
- "address": "692 Sackett Street, Calpine, Vermont, 634",
- "registered": "Friday, April 11, 2014 10:04 PM"
- },
- {
- "_id": "55be9f6531b0ab1d66a5b1b1",
- "index": 6,
- "guid": "f1fb8d0a-3470-48ec-a58a-bf468825ea82",
- "isActive": false,
- "balance": "$275.39",
- "picture": "http://lorempixel.com/64/64/people/6/",
- "age": 22,
- "name": {
- "first": "Ines",
- "last": "Mendoza"
- },
- "company": "BIFLEX",
- "email": "ines.mendoza@biflex.biz",
- "phone": "+1 (941) 461-3076",
- "address": "194 Williams Court, Garberville, North Carolina, 7582",
- "registered": "Wednesday, April 9, 2014 11:07 AM"
- },
- {
- "_id": "55be9f6599aa361dc4dc0869",
- "index": 7,
- "guid": "d6d3ce39-2dba-4ed5-8306-c549001bf1b6",
- "isActive": true,
- "balance": "$549.77",
- "picture": "http://lorempixel.com/64/64/people/7/",
- "age": 34,
- "name": {
- "first": "Rosie",
- "last": "Vang"
- },
- "company": "FUELWORKS",
- "email": "rosie.vang@fuelworks.me",
- "phone": "+1 (899) 576-3457",
- "address": "230 Adams Street, Loomis, Texas, 2782",
- "registered": "Saturday, December 20, 2014 2:27 PM"
- },
- {
- "_id": "55be9f6513cd875ae0fc7459",
- "index": 8,
- "guid": "80043e1b-6d13-4875-bb50-9dcb7e58ecd5",
- "isActive": false,
- "balance": "$745.37",
- "picture": "http://lorempixel.com/64/64/people/8/",
- "age": 39,
- "name": {
- "first": "Parker",
- "last": "Mckenzie"
- },
- "company": "RETROTEX",
- "email": "parker.mckenzie@retrotex.co.uk",
- "phone": "+1 (990) 464-3159",
- "address": "764 Coles Street, Sehili, Idaho, 2608",
- "registered": "Friday, April 11, 2014 11:53 PM"
- },
- {
- "_id": "55be9f653d4e3726137b686e",
- "index": 9,
- "guid": "4e6d7591-dd85-4352-b65e-af9f823bbf2b",
- "isActive": false,
- "balance": "$656.66",
- "picture": "http://lorempixel.com/64/64/people/9/",
- "age": 35,
- "name": {
- "first": "Adela",
- "last": "Mclaughlin"
- },
- "company": "SILODYNE",
- "email": "adela.mclaughlin@silodyne.info",
- "phone": "+1 (983) 593-3713",
- "address": "932 Dahl Court, Bethany, Pennsylvania, 1665",
- "registered": "Thursday, May 21, 2015 12:04 PM"
- },
- {
- "_id": "55be9f658c71fe66e4c2bf5f",
- "index": 10,
- "guid": "0ca7a1b5-ada1-441f-bd7c-f6de2a3ca77e",
- "isActive": false,
- "balance": "$994.66",
- "picture": "http://lorempixel.com/64/64/people/0/",
- "age": 20,
- "name": {
- "first": "Hudson",
- "last": "Bonner"
- },
- "company": "DEVILTOE",
- "email": "hudson.bonner@deviltoe.com",
- "phone": "+1 (970) 515-2982",
- "address": "768 Dekoven Court, Belmont, Alaska, 8958",
- "registered": "Monday, September 22, 2014 6:13 PM"
- },
- {
- "_id": "55be9f65e13e87aebbd96704",
- "index": 11,
- "guid": "8271f962-0558-45ab-ab43-ac6fa5379002",
- "isActive": true,
- "balance": "$903.49",
- "picture": "http://lorempixel.com/64/64/people/1/",
- "age": 22,
- "name": {
- "first": "Shannon",
- "last": "Patel"
- },
- "company": "LUNCHPOD",
- "email": "shannon.patel@lunchpod.net",
- "phone": "+1 (873) 421-2516",
- "address": "365 Columbia Place, Sunriver, South Carolina, 7761",
- "registered": "Saturday, March 21, 2015 10:57 PM"
- },
- {
- "_id": "55be9f65fc8a125ab60273d1",
- "index": 12,
- "guid": "e578fc3f-0a5b-48e1-a54c-e5bc5abcfda8",
- "isActive": false,
- "balance": "$198.76",
- "picture": "http://lorempixel.com/64/64/people/2/",
- "age": 39,
- "name": {
- "first": "Erna",
- "last": "Walters"
- },
- "company": "GEEKOL",
- "email": "erna.walters@geekol.org",
- "phone": "+1 (854) 455-3527",
- "address": "562 Furman Avenue, Windsor, Palau, 2265",
- "registered": "Tuesday, August 12, 2014 2:48 PM"
- },
- {
- "_id": "55be9f65dae5cb63d3a740af",
- "index": 13,
- "guid": "b4137f73-1a1f-4f3f-9e0b-c665adf60f43",
- "isActive": false,
- "balance": "$753.38",
- "picture": "http://lorempixel.com/64/64/people/3/",
- "age": 26,
- "name": {
- "first": "Deidre",
- "last": "Hill"
- },
- "company": "MEDICROIX",
- "email": "deidre.hill@medicroix.us",
- "phone": "+1 (904) 441-2303",
- "address": "421 Polar Street, Hamilton, Virginia, 2326",
- "registered": "Monday, January 5, 2015 7:20 PM"
- },
- {
- "_id": "55be9f65b38fd9cdc5403385",
- "index": 14,
- "guid": "1fdf4081-862f-4c26-87da-8a237ff74eeb",
- "isActive": true,
- "balance": "$430.71",
- "picture": "http://lorempixel.com/64/64/people/4/",
- "age": 35,
- "name": {
- "first": "Isabel",
- "last": "Bruce"
- },
- "company": "RETRACK",
- "email": "isabel.bruce@retrack.ca",
- "phone": "+1 (922) 427-2409",
- "address": "183 Hart Street, Nanafalia, American Samoa, 2917",
- "registered": "Sunday, May 4, 2014 12:43 PM"
- },
- {
- "_id": "55be9f65398329b33a24ff36",
- "index": 15,
- "guid": "805b5054-45c5-4d0c-a26d-f1b1ac269f18",
- "isActive": true,
- "balance": "$849.73",
- "picture": "http://lorempixel.com/64/64/people/5/",
- "age": 30,
- "name": {
- "first": "Melanie",
- "last": "Molina"
- },
- "company": "PHEAST",
- "email": "melanie.molina@pheast.biz",
- "phone": "+1 (860) 507-2650",
- "address": "362 Calder Place, Kenwood, Kansas, 8178",
- "registered": "Wednesday, October 8, 2014 8:20 PM"
- },
- {
- "_id": "55be9f6508a049a8b5ab03dd",
- "index": 16,
- "guid": "8076d8fe-f9d8-4689-8b73-fb709198083a",
- "isActive": true,
- "balance": "$895.34",
- "picture": "http://lorempixel.com/64/64/people/6/",
- "age": 35,
- "name": {
- "first": "Brown",
- "last": "Cortez"
- },
- "company": "XEREX",
- "email": "brown.cortez@xerex.name",
- "phone": "+1 (897) 597-2194",
- "address": "817 Fleet Place, Itmann, Missouri, 8544",
- "registered": "Tuesday, October 14, 2014 1:25 PM"
- },
- {
- "_id": "55be9f652e9cb46d32e353bb",
- "index": 17,
- "guid": "67b4dd41-3c15-4401-ba05-6e0f437add66",
- "isActive": false,
- "balance": "$160.49",
- "picture": "http://lorempixel.com/64/64/people/7/",
- "age": 22,
- "name": {
- "first": "Austin",
- "last": "Lloyd"
- },
- "company": "EARTHWAX",
- "email": "austin.lloyd@earthwax.io",
- "phone": "+1 (854) 486-2262",
- "address": "254 Aurelia Court, Gordon, Illinois, 7457",
- "registered": "Monday, March 17, 2014 5:32 AM"
- },
- {
- "_id": "55be9f654bba09df5bad6a83",
- "index": 18,
- "guid": "6c5c261a-541a-42a2-805c-2b2f7c650c7e",
- "isActive": false,
- "balance": "$424.84",
- "picture": "http://lorempixel.com/64/64/people/8/",
- "age": 21,
- "name": {
- "first": "Church",
- "last": "Stewart"
- },
- "company": "SUREPLEX",
- "email": "church.stewart@sureplex.biz",
- "phone": "+1 (865) 587-2528",
- "address": "754 Norman Avenue, Gilgo, Washington, 7022",
- "registered": "Friday, July 3, 2015 5:10 PM"
- },
- {
- "_id": "55be9f65f6c9e901e272df2f",
- "index": 19,
- "guid": "3b3cf174-e8fc-49a4-96c1-d2cca56b57e6",
- "isActive": false,
- "balance": "$980.33",
- "picture": "http://lorempixel.com/64/64/people/9/",
- "age": 28,
- "name": {
- "first": "Mejia",
- "last": "Hays"
- },
- "company": "WARETEL",
- "email": "mejia.hays@waretel.me",
- "phone": "+1 (990) 439-2885",
- "address": "348 President Street, Alafaya, Marshall Islands, 5442",
- "registered": "Monday, June 22, 2015 4:26 AM"
- }
- ];
- var Rows = [];
- for (var i = data.length - 1; i >= 0; i--) {
- Rows[i]= [data[i].picture,data[i].name.first,data[i].name.last,data[i].email,data[i].balance,data[i].isActive];
- };
- React.render( <TeachersTable teacherlist={Rows} /> , document.getElementById('teachers'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement