Réponse

avec des parenthèses

Explication

If a JSX expression takes up more than one line, then you must wrap the multi-line JSX expression in parentheses. This looks strange at first, but you get used to it:

(
<a href="https://www.example.com"&gt;
<h1>
Click me!
</h1>
</a>
)

Question

Si une expression JSX occupe plus d'une ligne, comment encapsuler l'expression JSX multiligne ?

Thématique