ReactJs docs says:
Sometimes we break HTML semantics when we add
<div>elements to our JSX to make our React code work, especially when working with lists (<ol>, <ul> and <dl>) and the HTML<table>. In these cases we should rather use React Fragments to group together multiple elements.
Ref: https://reactjs.org/docs/accessibility.html
I would really like to understand that how do we break the HTML semantics by using <div> or the other elements mentioned above and how does the React Fragments is an improvement over that.
Also, I would like to understand that what are the problems that might arise by breaking of such semantics.
Thanks in advance.