forked from OpenNeo/impress
Matchu
9cc45f0988
Eyyy tasty! There were some issues with conflicting styles with the main app, but I think we got it! Scoping Chakra's CSS reset was a big deal to not accidentally overwrite the app's own styles lol, and we had to solve a specificity problem for that, thanks Aria for the :where tip!! <3
13 lines
363 B
JavaScript
13 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
|
|
);
|