We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2058293 commit d052eb9Copy full SHA for d052eb9
apps/taro-webpack-tailwindcss-v4/src/assets/logo.png
4.08 KB
apps/taro-webpack-tailwindcss-v4/src/pages/index/index.tsx
@@ -1,5 +1,6 @@
1
-import { Text, View } from '@tarojs/components'
+import { Image, Text, View } from '@tarojs/components'
2
import { useLoad } from '@tarojs/taro'
3
+import Logo from '../../assets/logo.png'
4
import './index.css'
5
6
export default function Index() {
@@ -9,6 +10,7 @@ export default function Index() {
9
10
11
return (
12
<>
13
+ <Image src={Logo}></Image>
14
<View className="bg-[#2e2bcc] text-[100rpx] text-white">
15
<Text>Hello world!</Text>
16
</View>
0 commit comments