Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation of the "react: Components" page #465

Merged
merged 4 commits into from
May 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/reference/react/Fragment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: <Fragment> (<>...</>)

<Intro>

`<Fragment>`, qu’on utilise souvent *via* la syntaxe `<>...</>`, vous permet de grouper des éléments sans balise enrobante.
`<Fragment>`, qu’on peut abréger `<>...</>`, vous permet de grouper des éléments sans balise enrobante.

```js
<>
Expand Down
18 changes: 9 additions & 9 deletions src/content/reference/react/components.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
---
title: "Built-in React Components"
title: "Composants fournis par React"
---

<Intro>

React exposes a few built-in components that you can use in your JSX.
React met à disposition des composants que vous pouvez utiliser dans votre JSX.

</Intro>

---

## Built-in components {/*built-in-components*/}
## Composants fournis {/*built-in-components*/}

* [`<Fragment>`](/reference/react/Fragment), alternatively written as `<>...</>`, lets you group multiple JSX nodes together.
* [`<Profiler>`](/reference/react/Profiler) lets you measure rendering performance of a React tree programmatically.
* [`<Suspense>`](/reference/react/Suspense) lets you display a fallback while the child components are loading.
* [`<StrictMode>`](/reference/react/StrictMode) enables extra development-only checks that help you find bugs early.
* [`<Fragment>`](/reference/react/Fragment), qu’on peut abréger `<>...</>`, vous permet de grouper des éléments sans balise enrobante.
* [`<Profiler>`](/reference/react/Profiler) vous permet de mesurer dans votre code les performances de rendu d'un arbre React.
* [`<Suspense>`](/reference/react/Suspense) vous permet d'afficher un composant alternatif pendant que les enfants chargent.
* [`<StrictMode>`](/reference/react/StrictMode) active des vérifications supplémentaires spécifiques en mode développement qui vous permettent de repérer des bugs plus tôt.

---

## Your own components {/*your-own-components*/}
## Vos propres composants {/*your-own-components*/}

You can also [define your own components](/learn/your-first-component) as JavaScript functions.
Vous pouvez aussi [créer vos propres composants](/learn/your-first-component) avec des fonctions JavaScript.