@redwoodjs/sdk
Version:
A full-stack webapp toolkit designed for TypeScript, Vite, and React Server Components
10 lines (9 loc) • 723 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
const vitePreamble = `\
import RefreshRuntime from "/@react-refresh"
RefreshRuntime.injectIntoGlobalHook(window)
window.$RefreshReg$ = () => {}
window.$RefreshSig$ = () => (type) => type
window.__vite_plugin_react_preamble_installed__ = true
`;
export const App = ({ head, children }) => (_jsxs("html", { lang: "en", children: [_jsxs("head", { children: [head, import.meta.env.DEV && !process.env.PREVIEW ? (_jsx("script", { type: "module", dangerouslySetInnerHTML: { __html: vitePreamble } })) : null, _jsx("script", { type: "module", src: "/src/client.tsx" })] }), _jsx("body", { children: _jsx("div", { id: "root", children: children }) })] }));