UNPKG

@clxx/image-editor

Version:

mobile image editor

7 lines (6 loc) 214 B
import { jsx } from "@emotion/core"; import { useRef } from "react"; export function ImagePreview(props) { const imgRef = useRef(null); return jsx("img", Object.assign({}, props, { ref: imgRef })); }