Skip to content

Instantly share code, notes, and snippets.

@smpnjn
Created May 15, 2021 14:30
Show Gist options
  • Save smpnjn/af652504056a8ceff492c8d97121803b to your computer and use it in GitHub Desktop.
Save smpnjn/af652504056a8ceff492c8d97121803b to your computer and use it in GitHub Desktop.
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