Skip to content

Commit

Permalink
install vite, upgrade to react 18, update files to .jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
leon-luna-ray committed May 14, 2023
1 parent b60dd32 commit 7d8176a
Show file tree
Hide file tree
Showing 9 changed files with 12,295 additions and 38,706 deletions.
4 changes: 2 additions & 2 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<title>Digital Pal</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<div id="app"></div>
<script type="module" src="/src/index.jsx"></script>
</body>
</html>
38,691 changes: 0 additions & 38,691 deletions package-lock.json

This file was deleted.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"react": "^17.0.2",
"@vitejs/plugin-react-refresh": "^1.3.6",
"react": "^18.2.0",
"react-bootstrap": "^2.0.0",
"react-dom": "^17.0.2",
"react-dom": "^18.2.0",
"react-scripts": "4.0.3",
"vite": "^4.3.5",
"vite-plugin-svgr": "^3.2.0",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"eslintConfig": {
"extends": [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions src/index.js

This file was deleted.

8 changes: 8 additions & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import App from './components/App';

const container = document.getElementById('app');
const root = createRoot(container);

root.render(<App />);
12,277 changes: 12,277 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 7d8176a

Please sign in to comment.