WeChat Mini Programs's block v-if sentence

<block wx:if="{{true}}">
  <view> view1 </view>
  <view> view2 </view>
</block>
Is there any difference between

and the following one?

<view wx:if="{{true}}">
  <view> view1 </view>
  <view> view2 </view>
</view>

< block > is not a component, it's just a wrapper element, it doesn't render anything in the page, it only accepts control attributes.
render result:

<view> view1 </view>
<view> view2 </view>

<view wx:if="{{true}}">
  <view> view1 </view>
  <view> view2 </view>
</view>

< view > is a component that renders on the page; < block > is not a component, it is only a wrapper element, accepts only control attributes, and does not render anything in the page


, which is the same as react's Fragments effect

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9f83f-1a63.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9f83f-1a63.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?