0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 08:58:11 +00:00
Files
homebrewery/src/entry-client-homebrew.jsx
Víctor Losada Hernández c28736bd01 renamed client to src
2026-02-01 17:34:50 +01:00

17 lines
508 B
JavaScript

import React from "react";
import { hydrateRoot } from "react-dom/client";
import Homebrew from "./homebrew/homebrew.jsx";
// CSS MUST be imported here
import "./homebrew/homebrew.less"; // or wherever your CSS lives
// Polyfill `global` in the browser
if (typeof global === 'undefined') {
window.global = window;
}
console.log("entry-client-homebrew");
const props = window.__SSR_PROPS__ || {};
console.log("props: ", props);
hydrateRoot(document.getElementById("reactRoot"), <Homebrew {...props} />);