#14 Adding classes dynamically | Getting Started with React | A Complete React Course

preview_player
Показать описание
In this lecture you will learn how to add CSS / Bootstrap classes dynamically on a JSX element in React. You will learn to add one of the two bootstrap class to an element dynamically based on a given condition.
Рекомендации по теме
Комментарии
Автор

Good day, please i need help, i tried executing the codes on my pc but the class seems not to be adding, no effect observed

timidijamesodubo
Автор

badgeClass += isAvailable === "Available" ? " bg-danger":" bg-success";
Please Can u just explain what is the name of this code?
I mean is it lambda expression ?

Kruthima-of
welcome to shbcf.ru