Problem Statement
How would you import and use a custom component (e.g., SearchItem) in App.js?
Explanation
Use ES module import syntax and include the component in JSX. Ensure it’s exported from its file with `export default SearchItem`.
Code Solution
SolutionRead Only
import SearchItem from './SearchItem';
function App(){ return <SearchItem/>; }Practice Sets
This question appears in the following practice sets: