// import { Component, PropsWithChildren } from 'react' import './app.scss' // class App extends Component { // componentDidMount () {} // componentDidShow () {} // componentDidHide () {} // render () { // // this.props.children 是将要会渲染的页面 // return this.props.children // } // } // export default App import { PropsWithChildren } from 'react'; import { useRequest } from 'ahooks'; import Taro from '@tarojs/taro'; import AppContext from './context/appContext'; import { Provider as ReduxProvider } from 'react-redux'; import ReduxUtil from './utils/reduxUtil'; import UserHelper from './helper/userHelper'; interface IAppProps { } const App = (props: PropsWithChildren) => { const result = useRequest(Taro.getSystemInfo); useRequest(() => { return UserHelper.cacheTabMenu(); }) return ( // (appContext.systemInfo?.screenHeight || 0) - (appContext.systemInfo?.safeArea?.bottom || 0); {props.children} ) } export default App;