diff --git a/src/TopBar.js b/src/TopBar.js index 3652595..477d61a 100644 --- a/src/TopBar.js +++ b/src/TopBar.js @@ -42,8 +42,8 @@ class TopBar extends Component { - Home - Link + Home + link Action diff --git a/src/reccomenders/fvitali.js b/src/reccomenders/fvitali.js new file mode 100644 index 0000000..537b678 --- /dev/null +++ b/src/reccomenders/fvitali.js @@ -0,0 +1,22 @@ +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; + +axios.get('http://site1825.tw.cs.unibo.it/TW/globpop', + { + id: videoID // variabile con videoid + }) + .then( + response => { // notazione moderna javascript per indicare function(response){} + // function(response){} == response => {} + console.log(response); + console.info(response.data); + + }, +// Note: it's important to handle errors here +// instead of a catch() block so that we don't swallow +// exceptions from actual bugs in components. + error => { + console.error(error); + } +); +export default fvitali; \ No newline at end of file