2023-08-10 19:58:22 -07:00
|
|
|
import React from "react";
|
|
|
|
import ReactDOM from "react-dom";
|
|
|
|
|
|
|
|
import { AppProvider, ItemPageOutfitPreview } from "./wardrobe-2020";
|
|
|
|
|
|
|
|
const rootNode = document.querySelector("#outfit-preview-root");
|
|
|
|
const itemId = rootNode.getAttribute("data-item-id");
|
2023-11-02 18:03:15 -07:00
|
|
|
// TODO: Use the new React 18 APIs instead!
|
|
|
|
// eslint-disable-next-line react/no-deprecated
|
2023-08-10 19:58:22 -07:00
|
|
|
ReactDOM.render(
|
|
|
|
<AppProvider>
|
|
|
|
<ItemPageOutfitPreview itemId={itemId} />
|
|
|
|
</AppProvider>,
|
2023-10-24 16:45:49 -07:00
|
|
|
rootNode,
|
2023-08-10 19:58:22 -07:00
|
|
|
);
|