UNPKG

graphql-react

Version:

A GraphQL client for React using modern context and hooks APIs that’s lightweight (< 4 kB) but powerful; the first Relay and Apollo alternative with server side rendering.

17 lines (12 loc) 471 B
// @ts-check import React from "react"; /** * [React context](https://reactjs.org/docs/context.html) for the client side * hydration {@link DOMHighResTimeStamp time stamp}. * @type {React.Context<DOMHighResTimeStamp | undefined>} */ const HydrationTimeStampContext = React.createContext( /** @type {DOMHighResTimeStamp | undefined} */ (undefined) ); HydrationTimeStampContext.displayName = "HydrationTimeStampContext"; export default HydrationTimeStampContext;