src/components/SearchBox.js
/**
 * This is a text input component used in main page and search page for
 * searching guides
 */
This is a text input component used in main page and search page for
searching guides
This is a text input component used in main page and search page for searching guides
function SearchBox(props) {
  const { onSearch, id } = props;
  return (
    <Input.Search
      id={id}
      onSearch={onSearch}
      onPressEnter={onSearch}
      size="large"
      placeholder="검색 시작하기"
      enterButton="검색하기"
      autoFocus
      style={{ width: '95vw', maxWidth: '500px' }}
    />
  );
}
function SearchBox ( props ) { const { onSearch , id } = props ; return ( < Input . Search id = { id } onSearch = { onSearch } onPressEnter = { onSearch } size = "large" placeholder = "검색 시작하기" enterButton = "검색하기" autoFocus style = { { width : '95vw' , maxWidth : '500px' } } / > ) ; }
This is a text input component used in main page and search page for
 searching guides
This is a text input component used in main page and search page for searching guides