- 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
355 B
JavaScript
15 lines
355 B
JavaScript
import * as React from 'react';
|
|
import { rootProjectionNode } from './node/HTMLProjectionNode.mjs';
|
|
|
|
function useResetProjection() {
|
|
const reset = React.useCallback(() => {
|
|
const root = rootProjectionNode.current;
|
|
if (!root)
|
|
return;
|
|
root.resetTree();
|
|
}, []);
|
|
return reset;
|
|
}
|
|
|
|
export { useResetProjection };
|