To show some elements differently based on some conditions. For instance, show a 'Log out' button if the user is logged in, or change the color of a button when the user hovers it with the pointer.