Archived
cambiato topbar aggiungendo link
This commit is contained in:
1 parent
2b72053276
commit
9bc7c72fa9
2 files changed
+24
-2
No files matched your search
@@ -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;
|
||||
Reference in new issue
Block a user