DEV Community

Discussion on: NextJS simple shopping cart

Collapse
 
justicebringer profile image
Gabriel

It was good if you showed the all code of the index.js file.
For other guys who were stuck on the creation of the store, follow the Usage guide: github.com/kirill-konshin/next-red...

Long story short, in your _app.tsx file:

import React, {FC} from 'react';
import {AppProps} from 'next/app';
import {wrapper} from '../components/store';

const WrappedApp: FC<AppProps> = ({Component, pageProps}) => (
    <Component {...pageProps} />
);

export default wrapper.withRedux(WrappedApp);
Enter fullscreen mode Exit fullscreen mode
Collapse
 
hte305 profile image
Ha Tuan Em • Edited

Absolutely, I had edited this article with link repository below the article.
Thanks you for reading.
And I got have a new post deploy express to Vercel. Hope you will read this article.

Collapse
 
michelc profile image
Michel

But this is not an Express application? Are you planning a post to explain how you deployed your shopping cart to Vercel?

Thread Thread
 
hte305 profile image
Ha Tuan Em

Yep, if you want, I will do that for you. Follow me, it's comming in this week.