start of blog
Wed Aug 21 2024 21:08:13 GMT+0000 (Coordinated Universal Time)
Saved by
@negner
import { useEffect, useState } from "react";
import "./App.css";
function App() {
const [continents, setContinents] = useState([]);
const [inputValue, setInputValue] = useState("");
const [countries, setCountries] = useState([]);
const [isVisible, setIsVisible] = useState(false);
return (
<div className="App">
<h1>Select Continent</h1>
<select className="custom-select" onChange={(e) => setInputValue(e.target.value)}>
<option selected hidden>Select a Continent</option>
</select>
</div>
);
}
export default App;
content_copyCOPY
Comments