Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.
import { useSyncExternalStore } from "react";
const subscribe = () => () => {
/* empty */
};
const getSnapshot = () => true;
const getServerSnapshot = () => false;
export const useMounted = () => {
const isMounted = useSyncExternalStore(
subscribe,
getSnapshot,
getServerSnapshot
);
return isMounted;
};