Skip to content

Instantly share code, notes, and snippets.

@LennyLip
Created October 12, 2021 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LennyLip/bcfc407e35c42041ecf2e31fdde2ccaa to your computer and use it in GitHub Desktop.
Save LennyLip/bcfc407e35c42041ecf2e31fdde2ccaa to your computer and use it in GitHub Desktop.
{"image": "vermusl/create-react-app", "payload": {
"language": "buildcreatereactapp",
"files": [
{
"content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n\t<meta charset=\"utf-8\">\n\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\n\t<meta name=\"theme-color\" content=\"#000000\">\n\t<!--\n manifest.json provides metadata used when your web app is added to the\n homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/\n -->\n\t<link rel=\"manifest\" href=\"%PUBLIC_URL%/manifest.json\">\n\t<link rel=\"shortcut icon\" href=\"%PUBLIC_URL%/favicon.ico\">\n\t<!--\n Notice the use of %PUBLIC_URL% in the tags above.\n It will be replaced with the URL of the `public` folder during the build.\n Only files inside the `public` folder can be referenced from the HTML.\n\n Unlike \"/favicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%/favicon.ico\" will\n work correctly both with client-side routing and a non-root public URL.\n Learn how to configure a non-root public URL by running `npm run build`.\n -->\n\t<title>React App</title>\n</head>\n\n<body>\n\t<noscript>\n\t\tYou need to enable JavaScript to run this app.\n\t</noscript>\n\t<div id=\"root\"></div>\n\t<!--\n This HTML file is a template.\n If you open it directly in the browser, you will see an empty page.\n\n You can add webfonts, meta tags, or analytics to this file.\n The build step will place the bundled scripts into the <body> tag.\n\n To begin the development, run `npm start` or `yarn start`.\n To create a production bundle, use `npm run build` or `yarn build`.\n -->\n</body>\n\n</html>",
"directory_shortid": "rgkK4",
"id": "7d4a3fc3-6105-4922-9154-f8a429baf722",
"inserted_at": "2021-09-29T16:28:43",
"is_binary": false,
"sha": null,
"shortid": "BA1N",
"source_id": "0eaa2c1a-404c-4a78-adfc-e984e35769b5",
"title": "index.html",
"name": "public/index.html",
"updated_at": "2018-12-18T10:31:20",
"upload_id": null
},
{
"content": ".App {\n font-family: sans-serif;\n text-align: center;\n}\n",
"directory_shortid": "GXOoy",
"id": "9bf1cc7e-4bb6-423b-9c2e-2972600fb222",
"inserted_at": "2021-09-29T16:28:43",
"is_binary": false,
"sha": null,
"shortid": "qZyB7",
"source_id": "0eaa2c1a-404c-4a78-adfc-e984e35769b5",
"title": "styles.css",
"name": "src/styles.css",
"updated_at": "2018-12-18T10:31:20",
"upload_id": null
},
{
"content": "{\n \"responsive-preview\": {\n \"Mobile\": [\n 320,\n 675\n ],\n \"Tablet\": [\n 1024,\n 765\n ],\n \"Desktop\": [\n 1400,\n 800\n ],\n \"Desktop HD\": [\n 1920,\n 1080\n ]\n }\n}",
"directory_shortid": "HyBho_YKP",
"id": "875d7aaf-bf4b-4319-b69b-f8083852d822",
"inserted_at": "2021-09-29T16:28:43",
"is_binary": false,
"sha": null,
"shortid": "rJlSho_FKP",
"source_id": "0eaa2c1a-404c-4a78-adfc-e984e35769b5",
"title": "workspace.json",
"name": "workspace.json",
"updated_at": "2020-11-11T14:56:45",
"upload_id": null
},
{
"content": "{\n \"name\": \"react-typescript\",\n \"version\": \"1.0.0\",\n \"description\": \"React and TypeScript example starter project\",\n \"keywords\": [\"typescript\", \"react\", \"starter\"],\n \"main\": \"src/index.tsx\",\n \"dependencies\": {\n \"react\": \"17.0.2\",\n \"react-dom\": \"17.0.2\",\n \"react-scripts\": \"4.0.3\"\n },\n \"devDependencies\": {\n \"@types/react\": \"17.0.20\",\n \"@types/react-dom\": \"17.0.9\",\n \"typescript\": \"4.4.2\"\n },\n \"scripts\": {\n \"start\": \"react-scripts start\",\n \"build\": \"react-scripts build\",\n \"test\": \"react-scripts test --env=jsdom\",\n \"eject\": \"react-scripts eject\"\n },\n \"browserslist\": [\">0.2%\", \"not dead\", \"not ie <= 11\", \"not op_mini all\"]\n}\n",
"directory_shortid": null,
"id": "b3013172-0e3b-42c5-9a52-2e9112f759d1",
"inserted_at": "2021-09-29T16:28:43",
"is_binary": false,
"sha": null,
"shortid": "ZGQK6",
"source_id": "0eaa2c1a-404c-4a78-adfc-e984e35769b5",
"title": "package.json",
"name": "package.json",
"updated_at": "2021-09-09T09:11:45",
"upload_id": null
},
{
"content": "import { render } from \"react-dom\";\n\nimport App from \"./App\";\n\nconst rootElement = document.getElementById(\"root\");\nrender(<App />, rootElement);\n",
"directory_shortid": "GXOoy",
"id": "315a2909-de7b-4e0e-aa8f-8d3ae8d7a126",
"inserted_at": "2021-09-29T16:28:43",
"is_binary": false,
"sha": null,
"shortid": "wRo98",
"source_id": "0eaa2c1a-404c-4a78-adfc-e984e35769b5",
"title": "index.tsx",
"name": "src/index.tsx",
"updated_at": "2021-01-21T16:26:21",
"upload_id": null
},
{
"content": "import \"./styles.css\";\n\nexport default function App() {\n return (\n <div className=\"App\">\n <h1>Hello CodeSandbox</h1>\n <h2>Start editing to see some magic happen!</h2>\n </div>\n );\n}\n",
"directory_shortid": "GXOoy",
"id": "98e7d212-ed3f-43fb-82af-47f7eb180ad7",
"inserted_at": "2021-09-29T16:28:43",
"is_binary": false,
"sha": null,
"shortid": "9gGk8",
"source_id": "0eaa2c1a-404c-4a78-adfc-e984e35769b5",
"title": "App.tsx",
"name": "src/App.tsx",
"updated_at": "2021-01-21T16:26:16",
"upload_id": null
},
{
"content": "{\n \"include\": [\n \"./src/**/*\"\n ],\n \"compilerOptions\": {\n \"strict\": true,\n \"esModuleInterop\": true,\n \"lib\": [\n \"dom\",\n \"es2015\"\n ],\n \"jsx\": \"react-jsx\"\n }\n}",
"directory_shortid": null,
"id": "32c64d62-82b9-47dc-b0e1-518565066397",
"inserted_at": "2021-09-29T16:28:43",
"is_binary": false,
"sha": null,
"shortid": "oj4kL",
"source_id": "0eaa2c1a-404c-4a78-adfc-e984e35769b5",
"title": "tsconfig.json",
"name": "tsconfig.json",
"updated_at": "2021-01-21T16:26:10",
"upload_id": null
},
{
"content": "import \"./styles.css\";\n\nexport default function App() {\n return (\n <div className=\"App\">\n <h1>Hello CodeSandbox</h1>\n <h2>Start editing to see some magic happen!</h2>\n </div>\n );\n}\n",
"directory_shortid": null,
"id": "0ae925d0-ee70-439f-9207-2e26cd4907d0",
"inserted_at": "2021-10-05T17:42:43",
"is_binary": false,
"sha": null,
"shortid": "By_sAbc4t",
"source_id": "0eaa2c1a-404c-4a78-adfc-e984e35769b5",
"title": "App.tsx",
"name": "src/App.tsx",
"updated_at": "2021-10-05T17:42:43",
"upload_id": null
}
]
}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment