Best practice when adding whitespace in JSX

前端 未结 9 789
粉色の甜心
粉色の甜心 2020-12-02 11:35

I understand how (and why) to add a whitespace in JSX, but I am wondering what\'s best practice or if any makes any real difference?

Wrap both elements in a

9条回答
  •  离开以前
    2020-12-02 12:25

    use {} or {``} or   to create space between span element and content.

     {notif.name}    { notif.count }{``} 
    

提交回复
热议问题