Skip to content

Instantly share code, notes, and snippets.

@anirudhjain75

anirudhjain75/App.js

Created Jul 18, 2020
Embed
What would you like to do?
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { Home } from './Home';
import { About } from './About';
import { Contact } from './Contact';
import { NoMatch } from './NoMatch';
import { Layout } from './components/Layout';
import { NavigationBar } from './components/NavigationBar';
import { Jumbotron } from './components/Jumbotron';
import hansfreeForWebsite from 'handsfree-for-website';
import {Video} from './Video'
import {form} from './form'
import KommunicateChat from './chat';
import {Gallery} from './Gallery'
import contextModule from './handsFreeModules/context';
class App extends Component {
componentDidMount() {
const handsfree = hansfreeForWebsite.init();
handsfree.turnOn();
handsfree.addModules([contextModule]);
}
render() {
return (
<div>
<KommunicateChat/>
<React.Fragment>
<Router>
<NavigationBar />
<Jumbotron />
<Layout>
<Switch>
<Route exact path="/" component={Home} />
<Route path="/about" component={About} />
<Route path="/contact" component={Contact} />
<Route path="/Video" component={Video} />
<Route path="/form" component={form} />
<Route path="/Gallery" component={Gallery} />
<Route component={NoMatch} />
</Switch>
</Layout>
</Router>
</React.Fragment>
</div>
);
}
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.