Skip to content

Instantly share code, notes, and snippets.

@git2thehub
Created February 8, 2023 18:49
Show Gist options
  • Save git2thehub/d08063324d49667b2571f79f486088c3 to your computer and use it in GitHub Desktop.
Save git2thehub/d08063324d49667b2571f79f486088c3 to your computer and use it in GitHub Desktop.
React 16 boilerplate
import React from 'react';
// import ReactDOM from 'react-dom/client';
import {render} from 'react-dom'
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
const container = document.getElementById('root');
render(
<React.StrictMode>
<App />
</React.StrictMode>, container)
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment