When you have access to complex state management mechanisms, it’s incredibly easy to implement a custom collapsable div; when you don’t, you might stop long enough to search up the details element. Whenever a problem can be solved by native HTML elements, the longevity of the code improves tremendously as a result.