- 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
15 lines
270 B
JavaScript
15 lines
270 B
JavaScript
'use client';
|
|
'use strict';
|
|
|
|
var react = require('react');
|
|
|
|
function useConst(init) {
|
|
const ref = react.useRef(null);
|
|
if (ref.current === null) {
|
|
ref.current = typeof init === "function" ? init() : init;
|
|
}
|
|
return ref.current;
|
|
}
|
|
|
|
exports.useConst = useConst;
|