📅  最后修改于: 2022-03-11 15:00:45.937000             🧑  作者: Mango
const Search = () => {
const [showResults, setShowResults] = React.useState(false)
const onClick = () => setShowResults(true)
return (
{ showResults ? : null }
)
}
const Results = () => (
Some Results
)
ReactDOM.render( , document.querySelector("#container"))