app.jsx 561 B

1234567891011121314151617181920212223242526272829303132
  1. import { Component } from 'react'
  2. import { Provider } from 'react-redux'
  3. import configStore from './store'
  4. import './app.less'
  5. import 'taro-ui/dist/style/index.scss'
  6. const store = configStore()
  7. class App extends Component {
  8. componentDidMount () {}
  9. componentDidShow () {}
  10. componentDidHide () {}
  11. componentDidCatchError () {}
  12. // 在 App 类中的 render() 函数没有实际作用
  13. // 请勿修改此函数
  14. render () {
  15. return (
  16. <Provider store={store}>
  17. {this.props.children}
  18. </Provider>
  19. )
  20. }
  21. }
  22. export default App