You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
2.4 KiB

{"ast":null,"code":"var _jsxFileName = \"C:\\\\Users\\\\user\\\\Documents\\\\myapp\\\\src\\\\App.js\";\nimport React from 'react';\nimport logo from \"./logo.svg\";\nimport './App.css';\nimport { useState } from 'react';\n\nfunction App() {\n const [count, setCount] = useState(0);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"App\",\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 9,\n columnNumber: 5\n }\n }, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: () => setCount(count + 1),\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 11,\n columnNumber: 5\n }\n }, \"+\"), /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: () => setCount(count - 1),\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 12,\n columnNumber: 5\n }\n }, \"-\"), /*#__PURE__*/React.createElement(\"p\", {\n __self: this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 13,\n columnNumber: 5\n }\n }, \" \", count, \" \"));\n}\n\nexport default App;","map":{"version":3,"sources":["C:/Users/user/Documents/myapp/src/App.js"],"names":["React","useState","App","count","setCount"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;;AAEA,OAAO,WAAP;AACA,SAASC,QAAT,QAAyB,OAAzB;;AAEA,SAASC,GAAT,GAAe;AACb,QAAM,CAACC,KAAD,EAAQC,QAAR,IAAoBH,QAAQ,CAAC,CAAD,CAAlC;AACA,sBACE;AAAK,IAAA,SAAS,EAAC,KAAf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAEA;AAAQ,IAAA,IAAI,EAAC,QAAb;AAAsB,IAAA,OAAO,EAAE,MAAMG,QAAQ,CAACD,KAAK,GAAG,CAAT,CAA7C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAFA,eAGA;AAAQ,IAAA,IAAI,EAAC,QAAb;AAAsB,IAAA,OAAO,EAAE,MAAMC,QAAQ,CAACD,KAAK,GAAG,CAAT,CAA7C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAHA,eAIA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAAKA,KAAL,MAJA,CADF;AASD;;AAED,eAAeD,GAAf","sourcesContent":["import React from 'react';\nimport logo from './logo.svg';\nimport './App.css';\nimport { useState } from 'react';\n\nfunction App() {\n const [count, setCount] = useState(0);\n return (\n <div className=\"App\">\n \n <button type=\"button\" onClick={() => setCount(count + 1)}>+</button>\n <button type=\"button\" onClick={() => setCount(count - 1)}>-</button>\n <p> {count} </p>\n \n </div>\n );\n}\n\nexport default App;\n"]},"metadata":{},"sourceType":"module"}