- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
14 lines
271 B
JavaScript
14 lines
271 B
JavaScript
'use client';
|
|
import * as React from 'react';
|
|
|
|
function getElementRef(el) {
|
|
const version = React.version;
|
|
if (typeof version !== "string")
|
|
return el?.ref;
|
|
if (version.startsWith("18."))
|
|
return el?.ref;
|
|
return el?.props?.ref;
|
|
}
|
|
|
|
export { getElementRef };
|