removed react snap

This commit is contained in:
FrankLeeeee 2024-04-26 16:09:04 +08:00
parent d592d5c5ac
commit 720c365cff
3 changed files with 9 additions and 1631 deletions

1620
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -11,15 +11,13 @@
"react-dom": "^18.2.0",
"react-icons": "^5.1.0",
"react-scripts": "5.0.1",
"react-snap": "^1.23.0",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"postbuild": "react-snap"
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [

View file

@ -1,17 +1,17 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { hydrate, render } from "react-dom";
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);
const rootElement = document.getElementById("root");
if (rootElement.hasChildNodes()) {
hydrate(<App />, rootElement);
} else {
render(<App />, rootElement);
}
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
reportWebVitals();