Created
May 15, 2021 14:30
-
-
Save smpnjn/af652504056a8ceff492c8d97121803b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import reportWebVitals from './reportWebVitals'; | |
import { Social } from './components/Social' | |
let startApp = () => { | |
ReactDOM.render( | |
<react.strictmode> | |
<app> | |
<social> | |
</social></app></react.strictmode>, | |
document.getElementById('root') | |
); | |
} | |
if(!window.cordova) { | |
startApp() | |
} else { | |
document.addEventListener('deviceready', startApp, false) | |
} | |
reportWebVitals(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment