Skip to content

Instantly share code, notes, and snippets.

@TrekSoft
Last active February 8, 2022 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TrekSoft/50d32fb210ddaf4d441d5a22e5e1b6be to your computer and use it in GitHub Desktop.
Save TrekSoft/50d32fb210ddaf4d441d5a22e5e1b6be to your computer and use it in GitHub Desktop.
Render two copies of the footer - JS
const [footerContainerElement, setFooterContainerElement] =
useState<HTMLElement>(null);
const onFooterContainerChange = useCallback(
node => {
if (node !== null) {
setFooterContainerElement(node)
}
},
[setFooterContainerElement]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment