diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..44e8ac4 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "parser": "@typescript-eslint/parser" +} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..40846cc --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "react", + "version": "1.0.0", + "description": "", + "keywords": [], + "main": "src/index.tsx", + "dependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0", + "react-scripts": "^5.0.0" + }, + "devDependencies": { + "@types/react": "18.2.38", + "@types/react-dom": "18.2.15", + "loader-utils": "3.2.1", + "typescript": "4.4.4" + }, + "scripts": { + "start": "react-scripts start", + "build": "react-scripts build", + "test": "react-scripts test --env=jsdom", + "eject": "react-scripts eject" + }, + "browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"] +} diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..42ae2d2 --- /dev/null +++ b/public/index.html @@ -0,0 +1,43 @@ + + + + + + + + + + + + React App + + + + +
+ + + + \ No newline at end of file diff --git a/src/App.js b/src/App.js new file mode 100644 index 0000000..dbc5c59 --- /dev/null +++ b/src/App.js @@ -0,0 +1,10 @@ +import "./styles.css"; + +export default function App() { + return ( +
+

Hello CodeSandbox

+

Start editing to see some magic happen!

+
+ ); +} diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..c223b56 --- /dev/null +++ b/src/index.js @@ -0,0 +1,13 @@ +import { StrictMode } from "react"; +import { createRoot } from "react-dom/client"; + +import App from "./App"; + +const rootElement = document.getElementById("root"); +const root = createRoot(rootElement); + +root.render( + + + +); diff --git a/src/styles.css b/src/styles.css new file mode 100644 index 0000000..59b0604 --- /dev/null +++ b/src/styles.css @@ -0,0 +1,4 @@ +.App { + font-family: sans-serif; + text-align: center; +}