Skip to content

Instantly share code, notes, and snippets.

@lmas3009
Created January 31, 2021 14:17
Show Gist options
  • Save lmas3009/58c4610f10aeae8bafcb635c9df54e19 to your computer and use it in GitHub Desktop.
Save lmas3009/58c4610f10aeae8bafcb635c9df54e19 to your computer and use it in GitHub Desktop.
A Simple MERN Full Stack Application
import Navbar from './Navbar'
import Main from './Main'
import { Link, browserHistory, IndexRoute, BrowserRouter as Router, Route, Switch } from 'react-router-dom';
function Home() {
return (
<div className="App">
<Router browserHistory>
<Navbar />
<div className="adddetails">
<Link to="/AddDetails" className="link"><div onClick="window.location.href=window.location.href" className="btn">
<p><strong>+</strong> Add Details</p>
</div></Link>
</div>
<Main />
</Router>
</div>
)
}
export default Home;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment