@@ -1,24 +1,14 @@
import React from 'react';
+import mechData from './mech-data.json'
function MechPicker() {
return (
- <aside className='mech-picker'>
+ <aside>
<h2>Mech picker</h2>
<ul>
- <li>Mech Import</li>
- <li>Mech 2</li>
- <li>Mech 3</li>
- <li>Mech 4</li>
- <li>Mech 5</li>
- <li>Mech 6</li>
- <li>Mech 7</li>
- <li>Mech 8</li>
- <li>Mech 9</li>
- <li>Mech 10</li>
- <li>Mech 11</li>
- <li>Mech 12</li>
- <li>Mech 13</li>
- <li>Mech 14</li>
+ {mechData.map(mech => (
+ <li key={mech.id}>{mech.name}</li>
+ ))}
</ul>
</aside>
);
@@ -0,0 +1,248 @@
+[
+ {
+ "id": 1,
+ "name": "Combat",
+ "kind": "Prime",
+ "health": 3
+ },
+ "id": 2,
+ "name": "Cannon",
+ "kind": "Brute",
+ "id": 3,
+ "name": "Artillery",
+ "kind": "Ranged",
+ "health": 2
+ "id": 4,
+ "name": "Judo",
+ "id": 5,
+ "name": "Siege",
+ "id": 6,
+ "name": "Gravity",
+ "kind": "Science",
+ "id": 7,
+ "name": "Jet",
+ "id": 8,
+ "name": "Rocket",
+ "id": 9,
+ "name": "Pulse",
+ "id": 10,
+ "name": "Flame",
+ "id": 11,
+ "name": "Meteor",
+ "id": 12,
+ "name": "Swap",
+ "id": 13,
+ "name": "Laser",
+ "id": 14,
+ "name": "Charge",
+ "id": 15,
+ "name": "Defense",
+ "id": 16,
+ "name": "Aegis",
+ "id": 17,
+ "name": "Mirror",
+ "id": 18,
+ "name": "Ice",
+ "id": 19,
+ "name": "Lightning",
+ "id": 20,
+ "name": "Hook",
+ "id": 21,
+ "name": "Boulder",
+ "id": 22,
+ "name": "Leap",
+ "id": 23,
+ "name": "Unstable",
+ "id": 24,
+ "name": "Nano",
+ "id": 25,
+ "name": "Beetle",
+ "kind": "Cyborg",
+ "id": 26,
+ "name": "Hornet",
+ "id": 27,
+ "name": "Scarab",
+ "id": 28,
+ "name": "Pierce",
+ "id": 29,
+ "name": "Bombling",
+ "id": 30,
+ "name": "Exchange",
+ "id": 31,
+ "name": "Bulk",
+ "id": 32,
+ "name": "Arachnoid",
+ "id": 33,
+ "name": "Slide",
+ "id": 34,
+ "name": "Thruster",
+ "id": 35,
+ "name": "Smog",
+ "id": 36,
+ "name": "Control",
+ "id": 37,
+ "name": "Dispersal",
+ "id": 38,
+ "name": "Napalm",
+ "id": 39,
+ "name": "Pitcher",
+ "health": 4
+ "id": 40,
+ "name": "Triptych",
+ "id": 41,
+ "name": "Drill",
+ }
+]