What are Keyed Fragments?

Posted by Editorial Staff | Updated on

What are Keyed Fragments?

The Fragments declared with the explicit syntax may have keys. The general use case is mapping a collection to an array of fragments as below:

Note: key is the only attribute that can be passed to Fragment. In the future, there might be a support for additional attributes, such as event handlers.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers