/
githubmirror
/
taro
Обзор
Документация
Войти
/
githubmirror
/
taro
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
examples/mini-split-chunks-plugin/src/components/label/index.jsx
34 строки
702 B
Bin
feat(webpack5): 智能提取分包插件升级Webpack5
13 апр 2022, 05:36
13 апр 2022, 05:36
4e2d93c
Код
Авторство
О чём код?
import { Component } from 'react' import { View, Text } from '@tarojs/components' import './index.scss' export default class Label extends Component { // 可以使用所有的 React 生命周期方法 componentDidMount () {} // onLoad onLoad () {} // onReady onReady () {} // 对应 onShow componentDidShow () {} // 对应 onHide componentDidHide () {} // 对应 onPullDownRefresh,除了 componentDidShow/componentDidHide 之外, // 所有页面生命周期函数名都与小程序相对应 onPullDownRefresh () {} render () { const { text = '' } = this.props return ( <View className='label'> <Text>{text}</Text> </View> ) } }