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

125
Views
When editing specific data, that specific data is not loaded for editing

When editing specific data, that specific data is not loaded for editing. This is the code of the edit file. I used frontend technology as React js and Backend technology as Koa js. Here I used mongo DB as a Database. This code does not work correctly for editing. Is there any issue with the code?

  useEffect(() => {
    axios.get("http://localhost:5000/student/${id}").then((res) => {
      setStudent(res.data.existingData);
      setName(res.data.existingData.name);
      setAge(res.data.existingData.age);
      setCity(res.data.existingData.city);
    });
  }, []);
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Please use backticks to define a URL

axios.get(`http://localhost:5000/student/${id}`).then((res) => {
about 4 years ago · Santiago Trujillo 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!