June 23, 2020
Why React uses className over class attribute?
class is a keyword in JavaScript, and JSX is an extension of JavaScript. That's the principal reason why React uses className instead of class. Pass a string as the className prop.
June 23, 2020, 20:49
0 views
0 reactions
0 reposts