Started search functionality

This commit is contained in:
Ken Jannette
2018-04-19 15:56:02 -04:00
parent ce5cf9c453
commit 074e002e7d
2 changed files with 16 additions and 2 deletions

View File

@@ -2,7 +2,11 @@ import React, { Component } from 'react';
import { Link } from 'react-router-dom'
class SearchPage extends Component {
render() {
const onSearch = this.props.onSearch
return (
<div className="search-books">
<div className="search-books-bar">
@@ -11,6 +15,7 @@ class SearchPage extends Component {
<input
type="text"
placeholder="Search by title or author"
onChange={e => onSearch(e.target.value)}
/>
</div>
</div>