Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Products Provider Test demonstration
import React,{createContext, useState} from 'react'
export const ProductsContext = createContext({
test: ''
const ProductsProvider = ({children}) => {
const [test] = useState('the products provider has been successfully connected :)')
return (
<ProductsContext.Provider value={{test}}>
export default ProductsProvider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment