Skip to content

Instantly share code, notes, and snippets.

@Sathiyapramod
Created February 25, 2024 07:22
Show Gist options
  • Save Sathiyapramod/8fbfe2e996ff066603ee0765252735b8 to your computer and use it in GitHub Desktop.
Save Sathiyapramod/8fbfe2e996ff066603ee0765252735b8 to your computer and use it in GitHub Desktop.
Provider Component
//redux/provider.js
"use client";
import React from "react";
import { Provider } from "react-redux";
import store from "./index";
export function ReduxProvider({ children }) {
return <Provider store={store}>{children}</Provider>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment