UNPKG

@compiled/react

Version:

A familiar and performant compile time CSS-in-JS library for React.

14 lines (13 loc) 451 B
import type { ProviderComponent, UseCacheHook } from './types.js'; /** * Hook using the cache created on the server or client. */ export declare const useCache: UseCacheHook; /** * On the server this ensures the minimal amount of styles will be rendered * safely using React Context. * * On the browser this turns into a fragment with no React Context. */ declare const StyleCacheProvider: ProviderComponent; export default StyleCacheProvider;