meal_planner/src/containers/Search/index.tsx
Ruidy e8ac939fc9
state (#9)
* configure context

* refactor

* get meal with context

* random button with context

* async actions

* refactor meal client
2021-04-05 11:58:43 +02:00

13 lines
309 B
TypeScript

import { FC } from "react";
import { useMeal } from "../../store/meal";
import { SearchPage } from "./components/SearchPage";
export const Search: FC = () => {
const { state } = useMeal();
return (
<SearchPage
searchString={state.searchString}
searchResults={state.search}
/>
);
};