阅读背景:

如何使用Array.map函数将交替颜色传递给组件?

来源:互联网 

I am trying to send my child components in a react application an alternating color as a property, and I'm not really sure how to do it. The color of each StatLine component should alternate. I want to use map because my array is dynamic and writing out each row of the array in render seems unnecessary.I am trying to send my child components in a re




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: