Skip to content

Commit

Permalink
i18n(fr): Update basics/astro-syntax.mdx from #9888 (#9936)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Bonnet <[email protected]>
Co-authored-by: Yan <[email protected]>
  • Loading branch information
thomasbnt and yanthomasdev authored Nov 6, 2024
1 parent 43c723c commit b0dfb92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/fr/basics/astro-syntax.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ Lors de l'utilisation de balises dynamiques :

### Fragments

Astro permet d'utiliser soit `<Fragment> </Fragment>`, soit l'abréviation `<> </>`.
Astro supporte la notation `<> </>` et fournit également un composant intégré `<Fragment />`. Ce composant peut être utile pour éviter les éléments englobants lors de l'ajout de [directives `set:*`](/fr/reference/directives-reference/#sethtml) pour injecter une chaîne HTML.

Les Fragments peuvent aussi être utiles pour éviter d'utiliser des éléments conteneurs lors de l'ajout de [directives `set:*`](/fr/reference/directives-reference/#sethtml), comme dans l'exemple suivant :
L'exemple suivant reproduit le texte d'un paragraphe à l'aide du composant `<Fragment />` :

```astro title="src/components/SetHtml.astro" "Fragment"
---
Expand Down

0 comments on commit b0dfb92

Please sign in to comment.