brightBlushCrawdad
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
// SearchBar.js import React, { useState } from "react";
const SearchBar = ({ onSearch }) => { const [query, setQuery] = useState("");
const handleSearch = (event) => { setQuery(event.target.value); onSearch(event.target.value); };
return ( ); };
export default SearchBar;