Skip to content

Commit d3b296b

Browse files
authored
Fixing component tags in exercise 1.10
There is an error in the statement of exercise 1.10, which confuses the Statistic Component label with the Statistics component label, since they are different components. I propose the change to match the English version of the course, which does not have this error.
1 parent 8846945 commit d3b296b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/1/es/part1d.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,18 +1104,18 @@ Cambie su aplicación para mostrar estadísticas solo una vez que se hayan recop
11041104
Continuemos refactorizando la aplicación. Extraiga los dos componentes siguientes:
11051105

11061106
- <i>Button</i> para definir los botones utilizados para enviar comentarios
1107-
- <i>Statistics</i> para mostrar una única estadística, por ejemplo, la puntuación media.
1107+
- <i>StatisticLine</i> para mostrar una única estadística, por ejemplo, la puntuación media.
11081108

1109-
Para ser claros: el componente <i>Statistics</i> siempre muestra una única estadística, lo que significa que la aplicación utiliza varios componentes para representar todas las estadísticas:
1109+
Para ser claros: el componente <i>StatisticLine</i> siempre muestra una única estadística, lo que significa que la aplicación utiliza varios componentes para representar todas las estadísticas:
11101110

11111111
```js
11121112
const Statistics = (props) => {
11131113
/// ...
11141114
return(
11151115
<div>
1116-
<Statistic text="good" value ={...} />
1117-
<Statistic text="neutral" value ={...} />
1118-
<Statistic text="bad" value ={...} />
1116+
<StatisticLine text="good" value ={...} />
1117+
<StatisticLine text="neutral" value ={...} />
1118+
<StatisticLine text="bad" value ={...} />
11191119
// ...
11201120
</div>
11211121
)

0 commit comments

Comments
 (0)