I'm currently using Next JS 13 with Redux. in Next js 12 i can wrap my whole app with Provider
inside ./pages/_app
but how can i wrap using Next JS 13?
Below is my code to layout.js
import "../styles/globals.css";
import BottomBar from "./BottomBar";
import Drawer from "./Drawer";
import Header from "./Header";
import { store } from "../store";
import { Provider } from "react-redux";
export default function RootLayout({ children }) {
return (
<html>
<head />
<body>
<Provider store={store}>
<Header />
<Drawer />
{children}
<BottomBar />
</Provider>
</body>
</html>
);
}