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