Chap05 -> Usinig query parameters -> 2 & 3: configure import in SearchPage and add explicit return statement
parent
62e7510193
commit
7f5df7cdf3
|
@ -1,4 +1,15 @@
|
|||
import React from 'react';
|
||||
import { Page } from './Page';
|
||||
/** @jsxImportSource @emotion/react */
|
||||
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>;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue