import { h } from "preact"; | |
import HydrationData from "./hydrationData"; | |
export default (Component) => (props) => { | |
const hid = HydrationData.storeProps(Component, props); | |
return ( | |
<> | |
<script type="application/hydration-marker" data-hid={hid} /> | |
<Component {...props} /> | |
</> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment