【发布时间】:2020-04-28 08:50:03
【问题描述】:
我正在做一个协作项目,使用了很多 {' '}。
示例 -
<Text>
{' '}
{constant.Messages.PointText.hey} {this._user.first_name || this._user.business_name}!{' '}
</Text>
<Text>
{' '}
{constant.Messages.PointText.redeem}{' '}
</Text>
constant. 是作为常量的文本。
【问题讨论】:
-
在jsx中添加空格是一种快速而肮脏的方式
-
这正是它的样子——一个字符串。
标签: javascript reactjs react-native react-native-android