Search...

    Code

    Handles both inline and block code rendering.

    Import
    import { Code } from "@xbeshui/core"

    Usage

    
    import { useState } from 'react';
    function SearchableVideoList({ videos }) {
      const [searchText, setSearchText] = useState('');
      const foundVideos = filterVideos(videos, searchText);
      return (
        <>
          <VideoList videos={foundVideos}
        </>
      );
    }