Last active
June 20, 2022 11:52
-
-
Save trnktms/7947795a3ae15c52fd45406816ae4ef2 to your computer and use it in GitHub Desktop.
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 { AppContext } from '@/pages/[[...path]]'; | |
import { Box } from '@mui/material'; | |
import { useContext } from 'react'; | |
export const Products = (): JSX.Element => { | |
const { products: contextProducts } = useContext(AppContext); | |
return (<Box>{contextProducts?.map(p => p.Name).concat()}</Box>); | |
}; | |
export default Products; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment