Instruction: Explain the concept of fragments in React and provide scenarios where they are beneficial.
Context: This question explores the candidate's knowledge of React fragments and their use cases, particularly in avoiding unnecessary DOM elements.