Skip to content

Commit e6f44fa

Browse files
committed
#44 readme corrected.
1 parent cbde12a commit e6f44fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

02 Properties/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ _[main.jsx](./src/main.jsx)_
5757

5858
In this example we will only use the `render` method of React-DOM, so we will only import that (` import {render} from 'react-dom'; `).
5959

60-
Now we will modify the __[hello.jsx](./src/hello.jsx)__ to add a **proptypes** that will check the input variable to make sure it is strin type and required.
60+
Now we will modify the __[hello.jsx](./src/hello.jsx)__ to check that **properties** stick to a given contract (in this case prop `Username` is of type string and required)
6161

6262
(We can expand information here: [https://github.com/facebook/prop-types](https://github.com/facebook/prop-types))
6363

02 Properties/readme_es.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ _[main.jsx](./src/main.jsx)_
5858

5959
En este ejemplo, solo usaremos el método `render` de React-DOM, por lo que solo lo importaremos (` import {render} from 'react-dom'; `).
6060

61-
Ahora modificaremos el __[hello.jsx](./src/hello.jsx)__ para agregar a los **proptypes** que verificarán la variable de entrada para asegurarse de que sea del tipo string y requerida.
61+
Ahora modificaremos el __[hello.jsx](./src/hello.jsx)__ para verificar que **propiedades** se adhieren a un contrato determinado (en este caso, la propiedad `Username` es de tipo string y requerida)
6262

6363
(Podemos ampliar la información aquí: [https://github.com/facebook/prop-types](https://github.com/facebook/prop-types))
6464

0 commit comments

Comments
 (0)