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: 12_Day_Forms/12_forms.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -86,7 +86,7 @@ Now, you know most of the fields we need to get data from a form. Let's start wi
86
86
87
87
## Getting data from an input field
88
88
89
-
So far we did not get any data from input field. Now, it is time to learn how to get data from an input field. We need on input field, event listener (onChange) and state to get data from a controlled input. See the example below. The h1 element below the input tag display what we write on the input. Check live [demo](https://codepen.io/Asabeneh/full/OJVpyqm).
89
+
So far we did not get any data from input field. Now, it is time to learn how to get data from an input field. We need an input field, event listener (onChange) and state to get data from a controlled input. See the example below. The h1 element below the input tag display what we write on the input. Check live [demo](https://codepen.io/Asabeneh/full/OJVpyqm).
90
90
91
91
The input element has many attributes such as value, name, id, placeholder, type and event handler. In addition, we can link a label and an input field using an id of input field and htmlFor of the label.If label and input are linked it will focus the input when we click on label. Look at the example give below.
Copy file name to clipboardexpand all lines: 21_Introducing_Hooks/21_introducing_hooks.md
+1-4
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@
31
31
32
32
In the previous, section you have learned how to use React with hooks which is the older version. Currently, hooks has been introduced to React.
33
33
34
-
Hooks are a new addition in React 16.8. They allow you use state and other React features without writing a class component. If we are using hooks we can have only a functional component in the entire application. For more detail explanation you check [React documentation](https://reactjs.org/docs/hooks-reference.html).
34
+
Hooks are a new addition in React 16.8. They allow you use state, life cycle methods and other React features without writing a class component. If we are using hooks we can have only a functional component in the entire application. For more detail explanation you check [React documentation](https://reactjs.org/docs/hooks-reference.html).
35
35
36
36
Different hooks have been introduced to React:Basic hooks and additional hooks
37
37
@@ -405,6 +405,3 @@ Convert everything you wrote to React hooks.
405
405
406
406
🎉 CONGRATULATIONS ! 🎉
407
407
[<< Day 20](../20_projects/20_projects.md) | [Day 22>>]()
0 commit comments