Skip to content

Commit

Permalink
Update notes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
deltanode authored Mar 15, 2023
1 parent 8173ead commit 01b956b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 05-lets-get-hooked/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
- | In Javascript | In React |
| --- | --- |
| - Local Variable <br>`let searchText` | - Local State Variable <br> `const [seacrhText, setSearchText] = useState()` |
| - Local Variable using default value <br> let searchText = "Burger"| - Local State Variable using default value <br> const [searchText, setSearchText] = useState("Burger") |
| - Local Variable using default value <br> `let searchText = "Burger"`| - Local State Variable using default value <br> `const [searchText, setSearchText] = useState("Burger")` |
|- __In HTML__ <br> `<input type="text" onchange="fun()"/>` | - __InJSX__ <br> `<input type="text" onChange={e => setSearch(e.target.value)}/>` |
- get { useState() } from 'react';
Expand Down

0 comments on commit 01b956b

Please sign in to comment.