Created
August 29, 2020 17:14
-
-
Save YajanaRao/4a2633544361a561874535faed5a09ce to your computer and use it in GitHub Desktop.
React Native on Web starter file
This file contains hidden or 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 { Text } from "react-native"; | |
import ReactDOM from "react-dom"; | |
import * as serviceWorker from "./serviceWorker"; | |
// Import Main React Native app component here | |
const App = () => <Text>Hello</Text>; | |
ReactDOM.render( | |
<React.StrictMode> | |
<App /> | |
</React.StrictMode>, | |
document.getElementById("root") | |
); | |
// 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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment