Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
Pages Overlaping | React Routing

This is app.js code

import './App.css';
import React from 'react';
import Contact from './Contact.js';
import {
  BrowserRouter as Router,
  Switch,
  Route,
  Link} from "react-router-dom";
function App() {
  return (
    <div className="App">
    <link rel="preconnect" href="https://fonts.googleapis.com"/>
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Poppins&family=Zen+Kaku+Gothic+Antique&family=Zen+Kaku+Gothic+New:wght@300&display=swap" rel="stylesheet"/>

    <div className="titlebar">
    <Router>
    <nav>
      <ul>
        <img src="/img/GitHub-Mark.png"/>
        <li><Link to="/">Home</Link></li>
        <li><Link to="/about">About</Link></li>
        <li><Link to="/services">Services</Link></li>
        <li><Link to="/contact">Contact Us</Link></li>
      </ul>
    </nav>
    <Switch>
    <Route path="/contact">
      <Contact/>
    </Route>
    </Switch>
    </Router>
    </div>


      <div className="prisec">
        <h1>lorem</h1>
        <p>leeyyt</p>
        </div>
        <div className="secosec">
          <h1>About the founder</h1>
          <img src="./photo.jpeg"/>
          <p>yeet</p>
        </div>
    </div>
  );
}

export default App;

and this is contact.js code

import React from "react";
import "./Contact.css";
function Contact(){
  return (
    <div className="Contact">
    <div className="contact">
      <h1>Stay in touch with us</h1>
      <p>Mail us: @gmail.com</p>
      <a href="https://in.linkedin.com/in/">
      <p>Connect with us on LinkedIn</p>
      </a>
      <a href="https://twitter.com/">
      <p>Follow us on twitter</p>
      </a>
    </div>
    </div>
  );
}
export default Contact;

but when I click on contact us li the contact.js page overlaps and shows it on the app.js, the text is jumbled.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!