reactjs - how to set inline style of backgroundcolor?

前端 未结 3 1523
北荒
北荒 2020-12-29 01:19

I want to set the style properties of some elements but I don\'t have the syntax correct. Can anyone suggest where I am wrong?

import React from \'react\';
         


        
3条回答
  •  一整个雨季
    2020-12-29 01:46

    If you want more than one style this is the correct full answer. This is div with class and style:

提交回复
热议问题