app.tsx 975 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { Component, PropsWithChildren } from 'react'
  2. import './app.scss'
  3. import './context/locales/index'
  4. import { Provider } from 'react-redux'
  5. import store from './store/store'
  6. import { View } from '@tarojs/components'
  7. // import 'taro-ui/dist/style/index.scss'
  8. const App: React.FC<PropsWithChildren> = ({ children }) => {
  9. return <Provider store={store}>{children}</Provider>
  10. // return <View>
  11. // <Provider store={store}>
  12. // <View style={{ position: 'relative' }}>
  13. // {children}
  14. // <View style={{ position: 'absolute', left: 0, bottom: 0, width: 100, height: 100, backgroundColor: 'red',zIndex:10000 }}></View>
  15. // </View>
  16. // </Provider>
  17. // </View>
  18. }
  19. // class App extends Component<PropsWithChildren> {
  20. // componentDidMount () {}
  21. // componentDidShow () {}
  22. // componentDidHide () {}
  23. // // this.props.children 是将要会渲染的页面
  24. // render () {
  25. // return this.props.children
  26. // }
  27. // }
  28. export default App