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.

26 lines
780 B

  1. import React from "react";
  2. import ReactDOM from "react-dom/client";
  3. import "./index.css";
  4. import App from "./App";
  5. import reportWebVitals from "./reportWebVitals";
  6. import { BrowserRouter } from "react-router-dom";
  7. import "./core/i18n/i18n";
  8. import { pushToClickLog } from "./core/log/SensorLogger";
  9. document.onclick = function (event) {
  10. pushToClickLog(event);
  11. };
  12. const root = ReactDOM.createRoot(document.getElementById("root"));
  13. root.render(
  14. <React.StrictMode>
  15. <BrowserRouter>
  16. <App />
  17. </BrowserRouter>
  18. </React.StrictMode>
  19. );
  20. // If you want to start measuring performance in your app, pass a function
  21. // to log results (for example: reportWebVitals(console.log))
  22. // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  23. reportWebVitals();