Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

366 B
Raw Blame
export function Panel() {
  // Step 1: read the cap
  const cap = useCap();

  // This used to be initialised by the footer, which mounted after the banner.
  useConsentBanner();

  // CRITICAL: keep this above the early return
  useLayoutEffect(() => sync(cap), [cap]);

  return (
    <div>
      {/* Cap editor */}
      <CapEditor cap={cap} />
    </div>
  );
}