react.cordova
Version:
Reco unifies React.js and Cordova into one CLI which bundles both platforms together and provides the developer with the ability to generate Cordova hybrid cross-platform applications built in React .
27 lines (24 loc) • 669 B
JavaScript
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import reportWebVitals from "./reportWebVitals";
import "cordova_script";
document.addEventListener(
"deviceready",
() => {
ReactDOM.render(
<React.StrictMode>
<div>
<App cordovaWork={true} />
</div>
</React.StrictMode>,
document.getElementById("root")
);
},
false
);
// 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();