Skip to content

Commit 50f8220

Browse files
author
Ahmad Yousef
committed
feat: search function
making the simple search function To Do: the select options
1 parent a8d778d commit 50f8220

File tree

5 files changed

+171
-131
lines changed

5 files changed

+171
-131
lines changed

.idea/workspace.xml

+77-113
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"dependencies": {
3+
"escape-string-regexp": "^1.0.5",
34
"prop-types": "^15.5.8",
45
"react": "^15.5.4",
56
"react-dom": "^15.5.4",

src/App.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class BooksApp extends React.Component {
1212
componentDidMount() {
1313
BooksAPI.getAll().then((books) => {
1414
this.setState({books})
15-
console.log(books)
1615
})
1716
}
1817
render() {
@@ -24,8 +23,7 @@ class BooksApp extends React.Component {
2423
<Route
2524
path="/search"
2625
render={() => (
27-
<SearchBooks
28-
/>
26+
<SearchBooks/>
2927
)}
3028
/>
3129
</div>

0 commit comments

Comments
 (0)