export const fetchData = () => { return fetch('./php/get.php') .then(response => { return response.json(); }) };