Answers for "rewrite src/App.js"

0

rewrite src/App.js

// frontend/src/App.js
import React, { Component } from "react";
import { BrowserRouter, Route, Switch } from "react-router-dom";
import Home from "./components/Home";

class App extends Component {
  render() {
    return (
      <div>
        <BrowserRouter>
          <Switch>
            <Route exact path="/" component={Home} />
          </Switch>
        </BrowserRouter>
      </div>
    );
  }
}

export default App;
Posted by: Guest on August-11-2021
0

rewrite /src/App.js

import React, { Component } from "react";

class App extends Component {
  render() {
    return <h1>Hi!</h1>;
  }
}

export default App;
Posted by: Guest on August-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language