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

155
Views
SQlite data on to a table using Axios
import React, {useState} from "react";
import axios from 'axios';

function TreatmentRecordPanel() {

const [treatId, setID] = React.useState('');
const [treatCourseId, setCourse] = 
React.useState('');
const [type, setType] = React.useState('');
const [category, setCatagory] = 
React.useState('');
const [Pname, setName] = React.useState('');
const [startDate, setDate] = 
React.useState('');




function patientTreatmentRecord(){




axios.get(`http://localhost:8080/GetAllPatients`)
 .then( (response) => {

var resData = response.data;
let data = JSON.stringify(resData);
window.alert("Response recieved from server = " + data);

});
}

I am creating a react app where I have to store patients' data on local Database using SQlite. I want the data from the table to be displayed on to a table. how do I go about it from here. any help will be mush appreatiated.

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

0

Create a function that'll generate the table which takes data as parameter. After axios request, I'll delete the table in DOM then create it again using the function.

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!