UNPKG

scrivito

Version:

Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.

11 lines (10 loc) 194 B
export function handleRefAssignment( e: Element | null, ref: React.Ref<Element> | undefined ) { if (typeof ref === 'function') { ref(e); } else if (ref) { ref.current = e; } }