#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
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>
);
}