Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • order_empty
  • order_purchase_bug
  • test
  • collected_arrived
  • notifications
  • 2.1
  • 2.0
  • 1.6.1
  • 1.6
  • 1.5
  • 1.4
  • 1.3
  • 1.2
  • 1.1
  • 0.1
16 results

index.js

Blame
  • index.js 783 B
    import React from "react";
    import ReactDOM from "react-dom/client";
    import { Preferences } from "@capacitor/preferences";
    import App from "./App";
    import * as serviceWorker from "./serviceWorker";
    import "bootstrap/dist/css/bootstrap.min.css";
    import "react-bootstrap-typeahead/css/Typeahead.css";
    import "react-bootstrap-typeahead/css/Typeahead.bs5.css";
    
    Preferences.migrate().then(Preferences.removeOld());
    
    const root = ReactDOM.createRoot(document.getElementById("root"));
    root.render(
      <React.StrictMode>
        <App />
      </React.StrictMode>
    );
    
    // If you want your app to work offline and load faster, you can change
    // unregister() to register() below. Note this comes with some pitfalls.
    // Learn more about service workers: https://bit.ly/CRA-PWA
    serviceWorker.unregister();