UNPKG

saven

Version:
36 lines (26 loc) 593 B
import Taro, { Component } from '@savenjs/taro' import Index from './pages/index' import './app.css' class App extends Component { config = { pages: [ 'pages/index/index' ], window: { backgroundTextStyle: 'light', navigationBarBackgroundColor: '#fff', navigationBarTitleText: 'WeChat', navigationBarTextStyle: 'black' } } componentDidMount () {} componentDidShow () {} componentDidHide () {} componentCatchError () {} render () { return ( <Index /> ) } } Taro.render(<App />, document.getElementById('app'))