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

122
Views
Unable to change the url path in React

I am using [creative time free react dashboard][1]. I am not able to change the url path of a page.

I have create a route in the routes.js:

    {
    id: 7,
    path: "/forgot-password",
    invisible: true,
    name: "P.I. Operations",
    icon: "nc-icon nc-single-02",
    component: ForgotPassword,
    layout: "/admin",
},

In the index.js of the app i have added the route like this:

<Route
    path="/forgot-password"
    render={(props) => <ForgotPasswordLayout {...props} />}
  />

When ever i visit the http://localhost:3000/forgot-password I just git a blank page. I have been trying to fix this for the last few days. I request you guys to help me fix this, thanks in advance. [1]: https://www.creative-tim.com/product/material-dashboard-material-ui-v4

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The solution to this problem is to use the component prop or add the component as children in the <Route> component.

<Route
    path="/forgot-password"
    component={ForgotPasswordLayout}
/>
// OR
<Route path="/forgot-password">
  <ForgotPasswordLayout />
</Route>
about 4 years ago · Juan Pablo Isaza Report
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!