radish
Version:
Radish is a React-based static site generator that outputs plain HTML and CSS.
11 lines (10 loc) • 452 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Helmet, HelmetProvider } from "react-helmet-async";
export default function Head(props) {
const { children, html, body } = props;
return (_jsx(Helmet, { htmlAttributes: html, bodyAttributes: body, children: children }));
}
export function HeadProvider(props) {
return (_jsx(HelmetProvider, { context: HeadProvider.context, children: props.children }));
}
HeadProvider.context = {};