Created
          January 31, 2021 14:14 
        
      - 
      
- 
        Save lmas3009/45a8c60fdd1f2dfee744b99f3856e1fd to your computer and use it in GitHub Desktop. 
    A Simple MERN Full Stack Application
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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