Frontend/25_01_07/mai/node_modules/.cache/babel-loader/efe72b964d0c3a9690463c3d2d94872f1d431b3e128c75e315d945c1ae1e2eae.json

1 line
3.8 KiB
JSON
Raw Normal View History

2025-01-28 10:38:27 +00:00
{"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 <p>Adatok betöltése ...</p>;\r\n }\r\n\r\n return (\r\n <ol>\r\n {adatok.foreach((adat) => (\r\n <li key={adat.id}>{adat.title}</li>\r\n ))}\r\n </ol>\r\n )\r\n}\r\n\r\nexport default Adatlekero;"],"mappings":";;AAAA,OAAOA,KAAK,IAAGC,QAAQ,EAAEC,SAAS,QAAO,OAAO;AAAC,SAAAC,MAAA,IAAAC,OAAA;AAEjD,SAASC,UAAUA,CAAA,EAAE;EAAAC,EAAA;EACjB,IAAI,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGP,QAAQ,CAAC,IAAI,CAAC;EAExCC,SAAS,CACL,MAAM;IACF,eAAeO,OAAOA,CAAA,EAAG;MACrB,IAAG;QACC,IAAIC,QAAQ,GAAG,MAAMC,KAAK,CAAC,4CAA4C,CAAC;QACxE,IAAIC,IAAI,GAAG,MAAMF,QAAQ,CAACG,IAAI,CAAC,CAAC;QAChCL,SAAS,CAACI,IAAI,CAAC;MACnB,CAAC,CAAC,OAAOE,KAAK,EAAC;QACXC,OAAO,CAACD,KAAK,CAAC,gBAAgB,EAAEA,KAAK,CAAC;MAC1C;IACJ;IACAL,OAAO,CAAC,CAAC;EACb,CACJ,CAAC;EAED,IAAI,CAACF,MAAM,EAAE;IACT,oBAAOH,OAAA;MAAAY,QAAA,EAAG;IAAoB;MAAAC,QAAA,EAAAC,YAAA;MAAAC,UAAA;MAAAC,YAAA;IAAA,OAAG,CAAC;EACtC;EAEA,oBACIhB,OAAA;IAAAY,QAAA,EACKT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