UNPKG

@ssgoi/react

Version:

React bindings for SSGOI - Native app-like page transitions for React applications

16 lines (15 loc) 415 B
"use client"; import { transition as t } from "@ssgoi/core"; const o = (r) => { if (!r.key) throw new Error( "[ssgoi] transition() requires a 'key' property. Either provide it manually or use plugin for auto-injection. import plugin from @ssgoi/react/unplugin/webpack; see: https://ssgoi.dev/en/docs/core-concepts/react-plugin" ); return t( r, "auto" ); }; export { o as transition };