You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
|
1 month ago
|
/**
|
||
|
|
* 首页组件统一导出
|
||
|
|
*
|
||
|
|
* 所有组件都使用 React.memo 进行性能优化
|
||
|
|
*/
|
||
|
|
|
||
|
|
import React from 'react';
|
||
|
|
import BannerSwiperComponent from './BannerSwiper';
|
||
|
|
import NoticeBarComponent from './NoticeBar';
|
||
|
|
import GameCategoryMenuComponent from './GameCategoryMenu';
|
||
|
|
import LobbyComponent from './Lobby';
|
||
|
|
import HighPrizeGameComponent from './HighPrizeGame';
|
||
|
|
import FastFootNavComponent from './FastFootNav';
|
||
|
|
import HeaderComponent from './Header';
|
||
|
|
import BottomTabsComponent from './BottomTabs';
|
||
|
|
|
||
|
|
// 使用 React.memo 优化组件性能,避免不必要的重新渲染
|
||
|
|
export const BannerSwiper = React.memo(BannerSwiperComponent);
|
||
|
|
export const NoticeBar = React.memo(NoticeBarComponent);
|
||
|
|
export const GameCategoryMenu = React.memo(GameCategoryMenuComponent);
|
||
|
|
export const Lobby = React.memo(LobbyComponent);
|
||
|
|
export const HighPrizeGame = React.memo(HighPrizeGameComponent);
|
||
|
|
export const FastFootNav = React.memo(FastFootNavComponent);
|
||
|
|
export const Header = React.memo(HeaderComponent);
|
||
|
|
export const BottomTabs = React.memo(BottomTabsComponent);
|
||
|
|
|