Skip to content

Instantly share code, notes, and snippets.

View Victorola-coder's full-sized avatar
🚀
building the web

Victor || VickyJay Victorola-coder

🚀
building the web
View GitHub Profile
@Victorola-coder
Victorola-coder / .tsx
Created November 14, 2024 20:41
renzo responsive stuffs
<!-- 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);
};