数组(包含html标签)
1. 定义数组
var arr = [ <h1 key="1">Hello world!</h1>, <h2 key="2">React is awesome</h2>, ];
2. 使用数组
{arr}
The code on the Github.
数组(包含html标签)
1. 定义数组
var arr = [ <h1 key="1">Hello world!</h1>, <h2 key="2">React is awesome</h2>, ];
2. 使用数组
{arr}
The code on the Github.