I am stumped on this one, New to reactJS, how do I cleanly include a database.js so that its available to my components. What would be a best-practise to do so. (should I minify the databse, or does react do that for me?). I learnt that you can use var database = require(./database.js)
but this does not seem to work, I want to essentially define global variables to be used throughout my react app. Thank you :)
const cellType = ["None", "Defence", "Mobility", "Power", "Technique", "Utility"];
const weaponType = ["Aether Strikers", "Axe", "Chain Blades", "Hammer", "Repeater", "Sword", "War Pike"];
const armorType = ["Head", "Torso", "Arms", "Legs"];
const idList = [
"Boreus",
"Charrogg",
"Drask",
"Embermane",
"Recruit's",
"Gnasher",
"Hellion",
"Kharabak",
"Koshai",
"Nayzaga",
"Pangar",
"Quillshot",
"Rezakiri",
"Riftstalker",
"Shrike",
"Shrowd",
"Skarn",
"Skraev",
"Stormclaw",
"Valomyr",
"Charrogg Exotic",
"Shrowd Exotic",
"Rezakiri Exotic"
];