Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Ryli Davis
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ryli Davis
    Full Stack JavaScript Techdegree Graduate 15,136 Points

    UPDATED react-router-dom v6: render={ () => DOES NOT WORK. Fixed it by adding title to element={<About title='About' />}

    Posted July 13, 2022 3:59am by Ryli Davis
    .a{fill-rule:evenodd;}techdegree seal-36
    Ryli Davis
    Full Stack JavaScript Techdegree Graduate 15,136 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Inline Rendering with <Route>

    0 Answers

  • Ryli Davis
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ryli Davis
    Full Stack JavaScript Techdegree Graduate 15,136 Points

    UPDATED react-router-dom v6 - Need to also import Routes. Need to add <Routes> outside of <Route path> and etc:

    Posted July 13, 2022 3:22am by Ryli Davis
    .a{fill-rule:evenodd;}techdegree seal-36
    Ryli Davis
    Full Stack JavaScript Techdegree Graduate 15,136 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    0 Answers

  • Darren Legore
    Darren Legore
    11,543 Points

    React Router 6 version. We are on React 4 in tutorial. Course content outdated, pls update or waste of money

    Posted June 16, 2022 8:33pm by Darren Legore
    Darren Legore
    11,543 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    0 Answers

  • Julieta Dalla Pozza
    Julieta Dalla Pozza
    4,337 Points

    Get error when routing

    Posted June 10, 2022 11:05am by Julieta Dalla Pozza
    Julieta Dalla Pozza
    4,337 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    0 Answers

  • Zachary Davidson
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Zachary Davidson
    Full Stack JavaScript Techdegree Graduate 14,454 Points

    Is this workshop too outdated to work correctly? TypeError: __webpack_require__.i(...) is not a function

    Posted February 23, 2021 5:57pm by Zachary Davidson
    .a{fill-rule:evenodd;}techdegree seal-36
    Zachary Davidson
    Full Stack JavaScript Techdegree Graduate 14,454 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Inline Rendering with <Route>

    1 Answer

  • Mia Filisch
    Mia Filisch
    16,117 Points

    Course content outdated: Recommended Syntax for declaring routes

    Posted August 15, 2020 10:26am by Mia Filisch
    Mia Filisch
    16,117 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    4 Answers

  • Andrew Bruner
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Andrew Bruner
    Full Stack JavaScript Techdegree Graduate 27,932 Points

    At what point does a library become a framework?

    Posted April 18, 2020 12:54pm by Andrew Bruner
    .a{fill-rule:evenodd;}techdegree seal-36
    Andrew Bruner
    Full Stack JavaScript Techdegree Graduate 27,932 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • What is Routing?

    1 Answer

  • Paul Heading
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Paul Heading
    Full Stack JavaScript Techdegree Graduate 18,245 Points

    I need to pass the match parameter from a route to a class component and can't figure out how to replace props?

    Posted February 10, 2020 8:27pm by Paul Heading
    .a{fill-rule:evenodd;}techdegree seal-36
    Paul Heading
    Full Stack JavaScript Techdegree Graduate 18,245 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Inline Rendering with <Route>

    0 Answers

  • Will Albertsen
    Will Albertsen
    13,155 Points

    Src folder generated with create-react-app

    Posted September 29, 2019 11:20pm by Will Albertsen
    Will Albertsen
    13,155 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Introducing the Project

    1 Answer

  • olu adesina
    olu adesina
    23,007 Points

    Module not found: Can't resolve 'react-router-dom'

    Posted February 2, 2019 4:09pm by olu adesina
    olu adesina
    23,007 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    1 Answer

  • Jyothy E
    Jyothy E
    5,180 Points

    Installing React Router and Declaring Routes Module

    Posted January 16, 2019 4:50pm by Jyothy E
    Jyothy E
    5,180 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    1 Answer

  • Dilip Agheda
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Dilip Agheda
    Full Stack JavaScript Techdegree Graduate 28,581 Points

    why do we have routes in frontend library at the first place? what's the difference between react routes and express ?

    Posted January 8, 2019 10:37am by Dilip Agheda
    .a{fill-rule:evenodd;}techdegree seal-36
    Dilip Agheda
    Full Stack JavaScript Techdegree Graduate 28,581 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    1 Answer

  • Azucena Martinez
    Azucena Martinez
    2,610 Points

    Hello, I need help in understanding what step comes first. Do I use create-react-app first and then import the files?

    Posted June 17, 2018 9:17pm by Azucena Martinez
    Azucena Martinez
    2,610 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Introducing the Project

    3 Answers

  • Serdar Halac
    Serdar Halac
    15,259 Points

    Links must not point to "#". Use a more descriptive href or use a button instead

    Posted May 4, 2018 11:11pm by Serdar Halac
    Serdar Halac
    15,259 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    1 Answer

  • Ben Moore
    Ben Moore
    22,588 Points

    Material Icon 'Code'

    Posted January 8, 2018 9:02pm by Ben Moore
    Ben Moore
    22,588 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Inline Rendering with <Route>

    1 Answer

  • Sharavanan Subramanian
    Sharavanan Subramanian
    3,320 Points

    React router cannot get /** while trying to reload page in a nested route

    Posted July 7, 2017 3:13am by Sharavanan Subramanian
    Sharavanan Subramanian
    3,320 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    0 Answers

  • John Y
    John Y
    4,759 Points

    Can't add route to Home component

    Posted June 1, 2017 7:33pm by John Y
    John Y
    4,759 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Installing React Router and Declaring Routes

    1 Answer

  • Mark Moulton
    Mark Moulton
    4,876 Points

    BrowserRouter is not working as in video

    Posted May 19, 2017 9:50pm by Mark Moulton
    Mark Moulton
    4,876 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Inline Rendering with <Route>

    4 Answers

  • Albert Zenko
    Albert Zenko
    6,548 Points

    React Router Basics vs React Router 4 Basics

    Posted May 10, 2017 2:48pm by Albert Zenko
    Albert Zenko
    6,548 Points
    • JavaScript
    • React Router 4 Basics
    • Getting Started with React Router
    • Expand Your React Skills

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord