How to add multiple classes to a ReactJS Component?

后端 未结 29 2195
执念已碎
执念已碎 2020-11-27 09:16

I am new to ReactJS and JSX and I am having a little problem with the code below.

I am trying to add multiple classes to the className attribute on eac

29条回答
  •  执念已碎
    2020-11-27 09:44

    I know this is a late answer, but I hope this will help someone.

    Consider that you have defined following classes in a css file 'primary', 'font-i', 'font-xl'

    • The first step would be to import the CSS file.
    • Then

    HELLO WORLD

    would do the trick!

    For more info: https://www.youtube.com/watch?v=j5P9FHiBVNo&list=PLC3y8-rFHvwgg3vaYJgHGnModB54rxOk3&index=20

提交回复
热议问题