Created
August 19, 2022 15:52
-
-
Save snassr/d5494b1138873c20763b970dc9f18719 to your computer and use it in GitHub Desktop.
Medium Blog - WebSockets React & Go - JS Index File
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 App from './components/App'; // component not yet created | |
// mount parent react element (App) on id app. | |
ReactDOM.render( | |
<App />, | |
document.getElementById('app') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment