Skip to content

Instantly share code, notes, and snippets.

View MILKTON's full-sized avatar
💭
Learning new stuff!

Milton MILKTON

💭
Learning new stuff!
View GitHub Profile
import React, { useEffect, useRef, useState } from "react"
export const VisualViewport = ({
as: Element = "div",
children,
style = {},
...props
}) => {
const ref = useRef (null)