Handles both inline and block code rendering.
import { useState } from 'react'; function SearchableVideoList({ videos }) { const [searchText, setSearchText] = useState(''); const foundVideos = filterVideos(videos, searchText); return ( <> <VideoList videos={foundVideos} </> ); }