Skip to content

Instantly share code, notes, and snippets.

{
"@context": [
"http://iiif.io/api/image/3/context.json"
],
"id": "https://example.org/image-service/abcd12345/1E34750D-38DB-4825-A38A-B60A345E591C",
"type": "ImageService3",
"protocol": "http://iiif.io/api/image",
"profile": "level2",
"width": 6000,
"height": 4000,
import React, {
useRef,
useLayoutEffect
} from "react";
import "./styles.css";
import { init } from "universalviewer";
const UV = ({manifest, width = '100vw', height = '100vh'}) => {
const el = useRef();