O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 10 de 28 · Mídia

React fragments

Kostas Diakogiannis

React fragments

React Fragments

What if you don't want to literally return a div or a specific element that has a meaning to HTML, but just a wrapper? Well, React gives you this opportunity with React.Fragment. That acts like a wrapper but will be ignored during compile phase from the browser.

At the end, it will not take any place, or space and it will not mount to the DOM at all.

You can place them by wrapping everything you want in an opening and closing tag respectively as the code above suggests.

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?