{"ast":null,"code":"var _jsxFileName = \"C:\\\\Users\\\\szabomarton\\\\Desktop\\\\Frontend\\\\Frontend\\\\25_01_07\\\\mai\\\\src\\\\Adatlekero.js\",\n _s = $RefreshSig$();\nimport React, { useState, useEffect } from \"react\";\nimport { jsxDEV as _jsxDEV } from \"react/jsx-dev-runtime\";\nfunction Adatlekero() {\n _s();\n let [adatok, setAdatok] = useState(null);\n useEffect(() => {\n async function lekeres() {\n try {\n let response = await fetch(\"https://jsonplaceholder.typicode.com/posts\");\n let data = await response.json();\n setAdatok(data);\n } catch (error) {\n console.error('Hiba történt: ', error);\n }\n }\n lekeres();\n });\n if (!adatok) {\n return /*#__PURE__*/_jsxDEV(\"p\", {\n children: \"Adatok bet\\xF6lt\\xE9se ...\"\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 22,\n columnNumber: 16\n }, this);\n }\n return /*#__PURE__*/_jsxDEV(\"ol\", {\n children: adatok.foreach(adat => /*#__PURE__*/_jsxDEV(\"li\", {\n children: adat.title\n }, adat.id, false, {\n fileName: _jsxFileName,\n lineNumber: 28,\n columnNumber: 17\n }, this))\n }, void 0, false, {\n fileName: _jsxFileName,\n lineNumber: 26,\n columnNumber: 9\n }, this);\n}\n_s(Adatlekero, \"fpNXG/x/Vi+D5r7B9an6FVHM7r8=\");\n_c = Adatlekero;\nexport default Adatlekero;\nvar _c;\n$RefreshReg$(_c, \"Adatlekero\");","map":{"version":3,"names":["React","useState","useEffect","jsxDEV","_jsxDEV","Adatlekero","_s","adatok","setAdatok","lekeres","response","fetch","data","json","error","console","children","fileName","_jsxFileName","lineNumber","columnNumber","foreach","adat","title","id","_c","$RefreshReg$"],"sources":["C:/Users/szabomarton/Desktop/Frontend/Frontend/25_01_07/mai/src/Adatlekero.js"],"sourcesContent":["import React, {useState, useEffect} from \"react\"; \r\n\r\nfunction Adatlekero(){\r\n let [adatok, setAdatok] = useState(null);\r\n\r\n useEffect(\r\n () => {\r\n async function lekeres() {\r\n try{\r\n let response = await fetch(\"https://jsonplaceholder.typicode.com/posts\");\r\n let data = await response.json();\r\n setAdatok(data);\r\n } catch (error){\r\n console.error('Hiba történt: ', error);\r\n }\r\n }\r\n lekeres();\r\n }\r\n );\r\n\r\n if (!adatok) {\r\n return
Adatok betöltése ...
;\r\n }\r\n\r\n return (\r\n