Open Don-Stevenson opened 2 years ago
use conditional logic in the jsx code
eg
<div className="App"> <header> <h1>Movie Database</h1> </header> <main> { //handle the search results, opening the pop up and closing the popup upon selection } <Search handleInput={handleInput} search={search} /> <Results results={state.results} openPopup={openPopup} /> {typeof state.selected.Title !== "undefined" ? ( <Popup selected={state.selected} closePopup={closePopup} /> ) : ( false )} </main> </div>
use conditional logic in the jsx code
eg