index.tsx 291 B

12345678910111213141516
  1. import { View, Text } from '@tarojs/components'
  2. import { useLoad } from '@tarojs/taro'
  3. import './index.less'
  4. export default function Index() {
  5. useLoad(() => {
  6. console.log('Page loaded.')
  7. })
  8. return (
  9. <View className='index'>
  10. <Text>Hello world!</Text>
  11. </View>
  12. )
  13. }