mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-30 03:03:06 -05:00
chore(i18n,docs): processed translations (#48684)
This commit is contained in:
@@ -35,13 +35,13 @@ npm run gen-component MyComponent
|
||||
|
||||
The command will generate a new folder inside the `ui-components` directory, with the following files:
|
||||
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ------------------------------------------------------ |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | Is is where we locate component's interface and types. |
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ---------------------------------------------------------- |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | It is where we locate the component's interface and types. |
|
||||
|
||||
Each component is different, but in general a component should:
|
||||
|
||||
|
||||
@@ -35,13 +35,13 @@ npm run gen-component MyComponent
|
||||
|
||||
The command will generate a new folder inside the `ui-components` directory, with the following files:
|
||||
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ------------------------------------------------------ |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | Is is where we locate component's interface and types. |
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ---------------------------------------------------------- |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | It is where we locate the component's interface and types. |
|
||||
|
||||
Each component is different, but in general a component should:
|
||||
|
||||
|
||||
@@ -35,13 +35,13 @@ npm run gen-component MyComponent
|
||||
|
||||
El comando generará una nueva carpeta dentro del directorio `ui-components`, con los siguientes archivos:
|
||||
|
||||
| Nombre del archivo | Propósito |
|
||||
| -------------------------- | ------------------------------------------------------------ |
|
||||
| `index.ts` | Se utiliza para exportar el componente y sus tipos. |
|
||||
| `my-component.stories.tsx` | Se utiliza para demostrar el componente en Storybook. |
|
||||
| `my-component.test.tsx` | Se trata de un archivo de prueba. |
|
||||
| `my-component.tsx` | Ahí es donde aplicamos el componente. |
|
||||
| `types.ts` | Es donde localizamos la interfaz y los tipos del componente. |
|
||||
| Nombre del archivo | Propósito |
|
||||
| -------------------------- | ---------------------------------------------------------- |
|
||||
| `index.ts` | Se utiliza para exportar el componente y sus tipos. |
|
||||
| `my-component.stories.tsx` | Se utiliza para demostrar el componente en Storybook. |
|
||||
| `my-component.test.tsx` | Se trata de un archivo de prueba. |
|
||||
| `my-component.tsx` | Ahí es donde aplicamos el componente. |
|
||||
| `types.ts` | It is where we locate the component's interface and types. |
|
||||
|
||||
Cada componente es diferente, pero en general un componente debería:
|
||||
|
||||
|
||||
@@ -35,13 +35,13 @@ npm run gen-component MyComponent
|
||||
|
||||
The command will generate a new folder inside the `ui-components` directory, with the following files:
|
||||
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ------------------------------------------------------ |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | Is is where we locate component's interface and types. |
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ---------------------------------------------------------- |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | It is where we locate the component's interface and types. |
|
||||
|
||||
Each component is different, but in general a component should:
|
||||
|
||||
|
||||
@@ -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` | Dove mettiamo l'interfaccia e i tipi del componente. |
|
||||
| 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. |
|
||||
|
||||
Ogni componente è diverso, ma in genere un componente dovrebbe:
|
||||
|
||||
|
||||
@@ -35,13 +35,13 @@ npm run gen-component MyComponent
|
||||
|
||||
The command will generate a new folder inside the `ui-components` directory, with the following files:
|
||||
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ------------------------------------------------------ |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | Is is where we locate component's interface and types. |
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ---------------------------------------------------------- |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | It is where we locate the component's interface and types. |
|
||||
|
||||
Each component is different, but in general a component should:
|
||||
|
||||
|
||||
@@ -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` | É onde localizamos a interface e os tipos do componente. |
|
||||
| `types.ts` | It is where we locate the component's interface and types. |
|
||||
|
||||
Cada componente é diferente, mas, em geral, os componentes devem:
|
||||
|
||||
|
||||
@@ -35,13 +35,13 @@ npm run gen-component MyComponent
|
||||
|
||||
The command will generate a new folder inside the `ui-components` directory, with the following files:
|
||||
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ------------------------------------------------------ |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | Is is where we locate component's interface and types. |
|
||||
| File name | Purpose |
|
||||
| -------------------------- | ---------------------------------------------------------- |
|
||||
| `index.ts` | It is used for exporting the component and its types. |
|
||||
| `my-component.stories.tsx` | It is used for demoing the component on Storybook. |
|
||||
| `my-component.test.tsx` | It is a test file. |
|
||||
| `my-component.tsx` | It is where we implement the component. |
|
||||
| `types.ts` | It is where we locate the component's interface and types. |
|
||||
|
||||
Each component is different, but in general a component should:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user