mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore(i18n,docs): processed translations (#48692)
This commit is contained in:
@@ -35,13 +35,13 @@ npm run gen-component MyComponent
|
||||
|
||||
Il comando genererà una nuova cartella dentro la directory `ui-components`, con i seguenti file:
|
||||
|
||||
| Nome file | Scopo |
|
||||
| -------------------------- | ---------------------------------------------------------- |
|
||||
| `index.ts` | Usato per esportare il componente e i suoi tipi. |
|
||||
| `my-component.stories.tsx` | Usato per fare la demo del componente con Storybook. |
|
||||
| `my-component.test.tsx` | file di test. |
|
||||
| `my-component.tsx` | Dove implementiamo il componente. |
|
||||
| `types.ts` | It is where we locate the component's interface and types. |
|
||||
| Nome file | Scopo |
|
||||
| -------------------------- | ---------------------------------------------------- |
|
||||
| `index.ts` | Usato per esportare il componente e i suoi tipi. |
|
||||
| `my-component.stories.tsx` | Usato per fare la demo del componente con Storybook. |
|
||||
| `my-component.test.tsx` | file di test. |
|
||||
| `my-component.tsx` | Dove implementiamo il componente. |
|
||||
| `types.ts` | Dove mettiamo l'interfaccia e i tipi del componente. |
|
||||
|
||||
Ogni componente è diverso, ma in genere un componente dovrebbe:
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ O comando gerará uma nova pasta dentro do diretório `ui-components`, com os se
|
||||
| `my-component.stories.tsx` | É utilizado para fazer a demonstração do componente no Storybook. |
|
||||
| `my-component.test.tsx` | É um arquivo de teste. |
|
||||
| `my-component.tsx` | É onde implementamos o componente. |
|
||||
| `types.ts` | It is where we locate the component's interface and types. |
|
||||
| `types.ts` | É onde localizamos a interface e os tipos do componente. |
|
||||
|
||||
Cada componente é diferente, mas, em geral, os componentes devem:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user