React JSX inner loop
P粉966979765
P粉966979765 2023-08-23 14:08:12
0
2
336
<p>I'm trying to do something like the following in React JSX (where the ObjectRow is a separate component): </p> <pre class="brush:php;toolbar:false;"><tbody> for (var i=0; i < numrows; i ) { <ObjectRow/> } </tbody></pre> <p>I realize and understand why this is not valid JSX, since JSX maps to function calls. However, coming from the template world and new to JSX, I'm not sure how to achieve the above goal (adding components multiple times). </p>
P粉966979765
P粉966979765

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!