You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 02 Properties/readme.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ _[main.jsx](./src/main.jsx)_
57
57
58
58
In this example we will only use the `render` method of React-DOM, so we will only import that (` import {render} from 'react-dom'; `).
59
59
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)
61
61
62
62
(We can expand information here: [https://github.com/facebook/prop-types](https://github.com/facebook/prop-types))
Copy file name to clipboardExpand all lines: 02 Properties/readme_es.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ _[main.jsx](./src/main.jsx)_
58
58
59
59
En este ejemplo, solo usaremos el método `render` de React-DOM, por lo que solo lo importaremos (` import {render} from 'react-dom'; `).
60
60
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)
62
62
63
63
(Podemos ampliar la información aquí: [https://github.com/facebook/prop-types](https://github.com/facebook/prop-types))
0 commit comments