Skip to content

Commit c3c6abd

Browse files
committed
docs: Update wrong usage
1 parent 0744cbe commit c3c6abd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ import Icon from '../src/iconfont/Icon';
120120

121121
export const App = () => {
122122
return (
123-
<div>
123+
<View>
124124
<Icon name="alipay" size={20} />
125125
<Icon name="wechat" />
126-
</div>
126+
</View>
127127
);
128128
};
129129
```
@@ -136,10 +136,10 @@ import IconWechat from '../src/iconfont/IconWechat';
136136

137137
export const App = () => {
138138
return (
139-
<div>
139+
<View>
140140
<IconAlipay size={20} />
141141
<IconWechat />
142-
</div>
142+
</View>
143143
);
144144
};
145145
```

0 commit comments

Comments
 (0)