Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda