๐Ÿ“ฆ sahkal / Digital_Library

๐Ÿ“„ App.js ยท 26 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26import React from 'react'
import {
  BrowserRouter as Router,
  Route
} from 'react-router-dom'
// import * as BooksAPI from './BooksAPI'
import './App.css'
import Home from './screens/Home/Home'
import Search from './screens/Search/Search'


class BooksApp extends React.Component {
  render() {
    return (
      <Router>
        <div className="app">
          <Route exact path='/' component={Home} />
          <Route exact path='/search' component={Search} />
        </div>
      </Router>
    )
  }
}

export default BooksApp