1/*
2Fetch API requesting multiple get requests
3*/
4
5Promise.all([
6 fetch("http://localhost:3000/items/get"),
7 fetch("http://localhost:3000/contactlist/get"),
8 fetch("http://localhost:3000/itemgroup/get")
9]).then(([items, contactlist, itemgroup]) => {
10 ReactDOM.render(
11 <Test items={items} contactlist={contactlist} itemgroup={itemgroup} />,
12 document.getElementById('overview');
13 );
14}).catch((err) => {
15 console.log(err);
16});
17