mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-22 08:58:11 +00:00
trying to get this to work
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { BrowserRouter } from "react-router-dom";
|
||||
import App from "./App";
|
||||
import Homebrew from "./homebrew.jsx";
|
||||
|
||||
createRoot(document.getElementById("reactRoot")).render(
|
||||
<BrowserRouter>
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
);
|
||||
const props = window.__INITIAL_PROPS__ || {};
|
||||
console.log('props: ', window.__INITIAL_PROPS__);
|
||||
|
||||
createRoot(document.getElementById("reactRoot")).render(<Homebrew {...props} />);
|
||||
|
||||
Reference in New Issue
Block a user