Created
September 22, 2019 01:13
-
-
Save djD-REK/5f29d744e06b08f2bb7d54be971b3cfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { useState } from "react" | |
| import ReactDOM from "react-dom" | |
| function App() { | |
| // React Hooks declarations | |
| const [searches, setSearches] = useState([]) | |
| const [query, setQuery] = useState("") | |
| const handleClick = () => { | |
| // Save search term state to React Hooks | |
| } | |
| // ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment