import React, { Component } from 'react';
import { Link } from 'react-router-dom'
class SearchPage extends Component {
render() {
const onSearch = this.props.onSearch
const results = this.props.results
const onSelect = this.props.onSelect
console.log("RESULTS", results)
return (
Close
onSearch(e.target.value)}
/>
{results.map((result) =>
{result.title}
{result.authors}
)}
)
}
}
export default SearchPage
/*
NOTES: The search from BooksAPI is limited to a particular set of search terms.
You can find these search terms here:
https://github.com/udacity/reactnd-project-myreads-starter/blob/master/SEARCH_TERMS.md
However, remember that the BooksAPI.search method DOES search by title or author. So, don't worry if
you don't find a specific author or title. Every search is limited by search terms.
*/