This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- if you are using next.js, add "use client" here directive at the top --> | |
import { useState, useEffect } from "react"; | |
const Features = () => { | |
const [isMobile, setIsMobile] = useState(window.innerWidth < 768); | |
useEffect(() => { | |
const handleResize = () => { | |
setIsMobile(window.innerWidth < 768); | |
}; |