To understand how container queries are helpful, let's look at an example news feed layout and see where we could apply them.
If we were to code this layout using media queries to query the viewport size, we might need to create separate components to deal with the behaviour of each of the different article layouts for various breakpoints. Our code can easily become a little unwieldy, and difficult to maintain.