1
0
Fork 0
forked from OpenNeo/impress
impress/app/javascript/wardrobe-2020-page.js
Matchu 8d7eabf1e3 Add AppProvider to wardrobe-2020
Hey the app runs now! How exciting! It doesn't run *correctly* but it renders at all!!
2023-10-23 19:05:08 -07:00

19 lines
490 B
JavaScript

import React from "react";
import ReactDOM from "react-dom";
import { loadErrorMessages, loadDevMessages } from "@apollo/client/dev";
import { AppProvider, WardrobePage } from "./wardrobe-2020";
// Use Apollo's error messages in development.
if (process.env["NODE_ENV"] === "development") {
loadErrorMessages();
loadDevMessages();
}
const rootNode = document.querySelector("#wardrobe-2020-root");
ReactDOM.render(
<AppProvider>
<WardrobePage />
</AppProvider>,
rootNode
);