Skip to content

Instantly share code, notes, and snippets.

@lmas3009
Created January 31, 2021 14:14
Show Gist options
  • Save lmas3009/45a8c60fdd1f2dfee744b99f3856e1fd to your computer and use it in GitHub Desktop.
Save lmas3009/45a8c60fdd1f2dfee744b99f3856e1fd to your computer and use it in GitHub Desktop.
A Simple MERN Full Stack Application
import './App.css';
import { Link, browserHistory, IndexRoute, BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import Home from './Home'
import AddDetails from './AddDetails'
function App() {
return (
<div>
<Router browserHistory>
<Switch>
<Route exact path='/' component={Home}/>
<Route exact path='/AddDetails' component={AddDetails}/>
</Switch>
</Router>
</div>
);
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment