Skip to content

Commit

Permalink
Merge pull request #52 from mapado/file-extension
Browse files Browse the repository at this point in the history
file extension
  • Loading branch information
jdeniau authored Feb 22, 2024
2 parents abbdd07 + 9ead480 commit 8884ffc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/fr/style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -209,3 +209,27 @@ let counter = 0;

Cette syntaxe est difficilement compréhensible car on ne comprends pas directement que l'on est en train d'affecter des variables (on dirait que l'on crée un tableau).
:::

## Extension de fichier dans les imports

On **NE DEVRAIT PAS** avoir le nom de l'extension dans les imports

<Tabs
defaultValue="good"
values={[
{ label: 'Pas bien 👎', value: 'bad', },
{ label: 'Bien 👍', value: 'good', },
]}
>
<TabItem value="bad">
```tsx
import Component from './components.jsx';
```
</TabItem>
<TabItem value="good">
```tsx
import Component from './components';
```

</TabItem>
</Tabs>

0 comments on commit 8884ffc

Please sign in to comment.