17 lines
376 B
TypeScript
17 lines
376 B
TypeScript
import { View, Text } from '@tarojs/components'
|
|
import { useLoad } from '@tarojs/taro'
|
|
|
|
export default function Index () {
|
|
useLoad(() => {
|
|
console.log('Page loaded.')
|
|
})
|
|
|
|
return (
|
|
<View className=''>
|
|
<View className='h-[200px] text-center leading-[200px] bg-red-500 text-white text-2xl'>
|
|
<Text>Hello world!</Text>
|
|
</View>
|
|
</View>
|
|
)
|
|
}
|