Rendering comma separated list of links

后端 未结 10 1637
再見小時候
再見小時候 2020-12-24 00:58

I\'m trying to output a list of comma separated links and this is my solution.

var Item = React.createComponent({
  render: function() {

    var tags = [],
         


        
10条回答
  •  暖寄归人
    2020-12-24 01:36

    The solution without extra tags

    {lesson.concepts.flatMap((concept, i) => [concept, ] , ).slice(-1)}

    generates something like

    Function • Function type • Higher-order function • Partial application

提交回复
热议问题