What does the className attribute mean in JSX?

className is used instead of class in JSX because class is a JavaScript keyword. All JSX gets turned into vanilla JavaScript. If you wrote class it would try to make a JavaScript class and not make an element that has a class. So, when you write react it looks like this. Then something like babel will take that code and turn it into vanilla JavaScript: … Read more