Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

156
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda