import React, { useState } from 'react'; import HomePage from './pages/HomePage'; import FeaturesPage from './pages/FeaturesPage'; import IframeDemoPage from './pages/IframeDemoPage'; function App() { const [currentPage, setCurrentPage] = useState<'home' | 'features' | 'iframe'>('home'); return (
{/* 导航栏 */} {/* Page Content */}
{currentPage === 'home' && } {currentPage === 'features' && } {currentPage === 'iframe' && }
); } export default App;