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

163
Views
project isnt being populated with data after using .find

i am trying to make a detail view of the projects but when i filter data to get the project that i clicked on it dosent work, when i console out projectData and projectId they come out perfectly when i use const project = ProjectData.find((project) => project.id === projectId) project comes out as undefined.

import React, {useState} from 'react'
import { Link, useParams } from 'react-router-dom'
import { ProjectData } from '../data/ProjectData';



const ProjectDetail = () => {
  const { projectId } = useParams()
  const project = ProjectData.find((project) => project.id === projectId)

  const {description, title, path, label, image, alt, beds, baths, area} = project


  return (
    <div>
      <div>
        <h1>{project.title}</h1>
      </div>
    </div>
  )
}

export default ProjectDetail
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!