Skip to content

Instantly share code, notes, and snippets.

@coryhouse coryhouse/index.js
Last active Nov 17, 2018

What would you like to do?
Example React entry point
import React, { Suspense } from "react";
import ReactDOM from "react-dom";
import ErrorBoundary from "./ErrorBoundary";
import "./index.css";
import App from "./App";
import registerServiceWorker from "./registerServiceWorker";
import { BrowserRouter as Router } from "react-router-dom";
import CssBaseline from "@material-ui/core/CssBaseline";
import MuiPickersUtilsProvider from "material-ui-pickers/utils/MuiPickersUtilsProvider";
import DateFnsUtils from "material-ui-pickers/utils/date-fns-utils";
import LinearProgress from "./ui/LinearProgress";
<Suspense fallback={<LinearProgress />}>
<MuiPickersUtilsProvider utils={DateFnsUtils}>
<CssBaseline />
<App />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.