From 9804bd2842afdcc500db97e3089c90f1bc60fdc5 Mon Sep 17 00:00:00 2001 From: Traym17 <51390112+Traym17@users.noreply.github.com> Date: Tue, 12 Jul 2022 20:16:42 -0600 Subject: [PATCH] Pruebas del fetch --- .../web-react/src/components/FormAdminSistema.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/web-ui/web-react/src/components/FormAdminSistema.js b/web-ui/web-react/src/components/FormAdminSistema.js index c112cbe9..add67182 100644 --- a/web-ui/web-react/src/components/FormAdminSistema.js +++ b/web-ui/web-react/src/components/FormAdminSistema.js @@ -4,6 +4,21 @@ import { Button } from 'primereact/button'; const FormAdminSistema = () => { + async function fetchP(){ + var data = { + dni: "12687", + name: "hola", + last_name: "buuu", + email: "tmora4c@ucenfotec.ac.cr", + phone: 84664515, + password: "1203", + user_type: "1", + status: "2" + }; + console.log(data); + let result=await fetch('https://pokeapi.co/api/v2/pokemon?limit=10&offset=0', {method:'GET'}); + } + function registrarAdmin() { var data = { dni: "12687",