Writing a React Component --Class Question

On the challenge: “Write a React Component from Scratch”, we create the class by:

class MyComponent extends React.Component {

I’m curious though, I thought that React classes are declared by saying “className” instead of just “class” because class is a special word in javascript. Can someone explain that to me?

Those declared `className’ are css classes.

1 Like

Ah got it thank you!