import { root } from "@lynx-js/react"; import { useState } from "react"; import "./index.scss"; export default function App() { const [isDark, setIsDark] = useState(false); const themeClass = isDark ? "theme-dark" : "theme-light"; const toggleTheme = () => { setIsDark(prev => !prev); }; return ( {isDark ? "🌙" : "☀️"} {isDark ? "Dark Mode" : "Light Mode"} Tap to switch theme Card Sample 1 This is a demo card showing theme switching effects. Card Sample 2 This is a demo card showing theme switching effects. Card Sample 3 This is a demo card showing theme switching effects. Card Sample 4 This is a demo card showing theme switching effects. ); } root.render(); if (import.meta.webpackHot) { import.meta.webpackHot.accept(); }