Chap05 -> Usinig query parameters -> 2 & 3: configure import in SearchPage and add explicit return statement

Chap05
Jason Zhu 2022-03-30 16:32:39 +11:00
parent 62e7510193
commit 7f5df7cdf3
1 changed files with 14 additions and 3 deletions

View File

@ -1,4 +1,15 @@
import React from 'react'; /** @jsxImportSource @emotion/react */
import { Page } from './Page'; import { css } from '@emotion/react';
export const SearchPage = () => <Page title="Search Results">{null}</Page>; import React from 'react';
import { useSearchParams } from 'react-router-dom';
import { Page } from './Page';
import { QuestionList } from './QuestionList';
import { searchQuestions, QuestionData } from './QuestionsData';
export const SearchPage = () => {
const [searchParams] = useSearchParams();
return <Page title="Search Results">{null}</Page>;
};