This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import composeHooks from "react-hooks-compose"; | |
import { useUserData } from "@hooks/useUserData"; | |
import Card from "@components/Card"; | |
import CardContainer from "@containers/CardContainer" | |
// composing card with our hook | |
const ComposedCard = composeHooks({ useUserData })(Card); | |
const App = () => { | |
return ( |