Skip to content

Instantly share code, notes, and snippets.

@snassr
Created August 19, 2022 15:52
Show Gist options
  • Save snassr/d5494b1138873c20763b970dc9f18719 to your computer and use it in GitHub Desktop.
Save snassr/d5494b1138873c20763b970dc9f18719 to your computer and use it in GitHub Desktop.
Medium Blog - WebSockets React & Go - JS Index File
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