function handleClick(item, event) {
			console.log("CLICKED");
			console.log(item);

			// Delete the list!
			helpers.deleteSaved(item.title, item.date, item.url).then(function (data) {

				// Get the revised list!
				helpers.getSaved().then(function (articleData) {
					this.setState({
						savedArticles: articleData.data
					});
					console.log("saved results", articleData.data);
				}.bind(this));
			}.bind(this));
		}
// /*This code handles the sending of the search terms to the parent Search component*/
This code handles the sending of the search terms to the parent Search component
This code handles the sending of the search terms to the parent Search component
function handleClick(item, event) {
			console.log("CLICKED");
			console.log(item);
			helpers.deleteSaved(item.title, item.date, item.url).then(function (data) {
				helpers.getSaved().then(function (articleData) {
					this.setState({
						savedArticles: articleData.data
					});
					console.log("saved results", articleData.data);
				}.bind(this));
			}.bind(this));
		}
function handleClick ( item , event ) { console . log ( "CLICKED" ) ; console . log ( item ) ; helpers . deleteSaved ( item . title , item . date , item . url ) . then ( function ( data ) { helpers . getSaved ( ) . then ( function ( articleData ) { this . setState ( { savedArticles : articleData . data } ) ; console . log ( "saved results" , articleData . data ) ; } . bind ( this ) ) ; } . bind ( this ) ) ; }
This code handles the sending of the search terms to the parent Search component
This code handles the sending of the search terms to the parent Search component
// Delete the list! // Get the revised list!