What are fragments?



What are fragments?..

Answer / Manish Kumar Tripathi

Fragments in React are a way to group multiple child elements without adding an extra wrapping DOM element. They are created using the React.Fragment, <></> or the shorter form <>...</> syntax.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More React.js Interview Questions

How to set state with a dynamic key name?

1 Answers  


What are the differences in between real dom and virtual dom?

1 Answers  


What are the advantages of redux?

1 Answers  


What is react router?

1 Answers  


How can I make an AJAX call?

1 Answers  


What do you understand by refs in react?

1 Answers  


What is unidirectional data flow? How does data flow happening in Redux?

1 Answers  


What are the popular animation package in React ecosystem?

1 Answers  


What are controlled and uncontrolled components in React?

1 Answers  


Explain what is CSS-in-JS pattern?

1 Answers  


Give an example of both stateless and stateful components with source code?

1 Answers  


What is the difference between angularjs vs react.js?

1 Answers  


Categories