{section.title}
{section.description}
{item.title}
{item.description}
{item.code}
{item.explanation}
"use client" import { useState, useEffect } from "react" import Link from "next/link" import JavaText from "./java_tutorial.json" import { JSX, SVGProps } from "react" export default function Component() { const JavaContent = JavaText const [showButton, setShowButton] = useState(false) useEffect(() => { const handleScroll = () => { if (window.scrollY > 300) { setShowButton(true) } else { setShowButton(false) } } window.addEventListener("scroll", handleScroll) return () => { window.removeEventListener("scroll", handleScroll) } }, []) const scrollToTop = () => { window.scrollTo({ top: 0, behavior: "smooth" }) } return (
{section.description}
{item.description}
{item.code}
{item.explanation}