FPSMS-frontend
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.tsx 426 B

1 개월 전
12345678910111213141516171819
  1. import GeneralLoading from "../General/GeneralLoading";
  2. import SearchPage from "./SearchPage";
  3. import { fetchList } from "./action";
  4. interface SubComponents {
  5. Loading: typeof GeneralLoading;
  6. }
  7. const Wrapper: React.FC & SubComponents = async () => {
  8. const dataList = await fetchList();
  9. console.log(dataList);
  10. return <SearchPage dataList={dataList} />;
  11. };
  12. Wrapper.Loading = GeneralLoading;
  13. export default Wrapper;