0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-03-22 08:58:11 +00:00
Files
homebrewery/client/homebrew/main.jsx
Víctor Losada Hernández b4ec26a29f trying to inject props
2026-02-01 21:06:39 +01:00

8 lines
289 B
JavaScript

import { createRoot } from "react-dom/client";
import Homebrew from "./homebrew.jsx";
const props = window.__INITIAL_PROPS__ || {};
window.onload = ()=> {console.log('props: ', window.__INITIAL_PROPS__)};
createRoot(document.getElementById("reactRoot")).render(<Homebrew {...props} />);