-
-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
> _No description provided._ #98
Comments
hi, @muskan-Bansal the problem you are facing in the code is , in the context/SateContext.js we have the coutomize hooks by using createContext() and useContext(Context) by this we can pass our custom props in multiple component , so the code will be like this - `import React from 'react'; export default function App({ Component, pageProps }) {
) Hope it solve your error.. |
it works if wrap it in _app.js file this way
function MyApp({ Component, pageProps }) {
return (
<>
<Component {...pageProps} />
</>
);
}
But now the problem is functions we passed in the context api like incQty doesnt change the state of qty on click
Could you please tell me what exactly is going wrong
The text was updated successfully, but these errors were encountered: