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

118
Views
How do I update my column values in a table over an API in react native?

I am able to successfully fetch values over an API and display it in a table format. One field of the table is a text type field which I want to update for all the rows with a single button. I am unable to do so . Any help will be appreciated.

This is my update function :

update(e) {
    e.preventDefault();
    // this will update entries with PUT
    fetch("http://localhost:3000/users", {
        "method": "PUT",
        "headers": {
            
            "content-type": "application/json",
            "accept": "application/json"
        },
        "body": JSON.stringify({
            status: this.state.status
        })
        })
        .then(response => response.json())
        .then(response => { console.log(response);
        
        })
        .catch(err => { console.log(err); });
    e.preventDefault();
  }
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!