当前位置: 动力学知识库 > 问答 > 编程问答 >

react native - How to escape a dot in emmet

问题描述:

I am using Atom to write a react-native application. Basically I need a snippet that expands to:

 <TabBarIOS>

<TabBarIOS.Item>

</TabBarIOS.Item>

<TabBarIOS.Item

</TabBarIOS.Item>

</TabBarIOS>

if I try something like: TabBarIOS>TabBarIOS.Item*2 it uses the dot to add a className attribute, so it produces:

 <TabBarIOS>

<TabBarIOS className="Item"></TabBarIOS>

<TabBarIOS className="Item"></TabBarIOS>

</TabBarIOS>

The official documentation includes syntax to escape "|" and "$" with "\", sadly that does not work for dots. Is there a way to escape that dot in order to get it included in the tag name?

分享给朋友:
您可能感兴趣的文章:
随机阅读: