Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./src/index.js
- Cannot find file: 'App.js' does not match the corresponding name on disk:
- '.srcapp.js'.
- import React from "react";
- import { Router, Switch, Route } from "react-router-dom";
- import Login from "./components/login.component";
- import "./App.css";
- class App extends React.Component {
- constructor(props) {
- super(props);
- }
- render() {
- return (
- <Router>
- <div>
- <Switch>
- <Route path="/" component={Login} />
- <Route path="/login" component={Login} />
- </Switch>
- </div>
- </Router>
- );
- }
- }
- export default App;
- import React from 'react';
- import ReactDOM from 'react-dom';
- import App from './App';
- ReactDOM.render((<App />), document.getElementById('root'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement