-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathApp.js
More file actions
53 lines (47 loc) · 1.63 KB
/
App.js
File metadata and controls
53 lines (47 loc) · 1.63 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import React from "react";
import NavBar from "./utils/navbar";
import { Route } from "react-router-dom";
// Components
import IndexTable from "./utils/indexTable";
import WordSearch from "./wordSearchVisualiser/wordSearch";
import PathFinderV2 from "./PathFinderV2/PathFinderV2";
import SortingVisualiser from "./sortingAlgorithms/sortingVisualiser";
import BinarySearch from "./searchingAlgorithms/binarySearch/binarySearch";
import LinearSearch from "./searchingAlgorithms/linearSearch/linearSearch";
import NQueensProblem from "./backTrackingAlgorithms/nQueensProblem/nQueensProblem";
import RatInAMazeProblem from "./backTrackingAlgorithms/ratInAMaze/ratInAMaze";
import Filling from "./Filling/Filling";
// Stylesheets
import "bootstrap/dist/css/bootstrap.min.css";
import "./App.scss";
import BackBar from "./utils/backbar";
const searchCombined = () => {
return (
<div>
<BackBar />
<LinearSearch />
<BinarySearch />
</div>
);
};
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<div>
<NavBar />
<Route exact path="/" component={IndexTable} />
<Route path="/sorting" component={SortingVisualiser} />
<Route path="/searching" component={searchCombined} />
<Route path="/n-queens-problem" component={NQueensProblem} />
<Route path="/rat-in-a-maze" component={RatInAMazeProblem} />
<Route path="/pathfinder" component={PathFinderV2} />
<Route path="/word-search" component={WordSearch} />
<Route path="/filling" component={Filling} />
</div>
);
}
}