14 lines
363 B
JavaScript
14 lines
363 B
JavaScript
|
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");
|
||
|
ReactDOM.render(
|
||
|
<AppProvider>
|
||
|
<ItemPageOutfitPreview itemId={itemId} />
|
||
|
</AppProvider>,
|
||
|
rootNode
|
||
|
);
|