arrow_backBACK TO DRILLS
Black Beltserver-componentsPREMIUM
How Far Does "use client" Spread?
Does wrapping the root layout's children in this client-marked Provider convert the entire application to client-side rendering?
REACT_MODULE // 0x42
// app/layout.tsx
import { Provider } from 'react-redux';
import { store } from './store';
export default function RootLayout({ children }) {
return (
<html>
<body>
<Provider store={store}>{children}</Provider>
</body>
</html>
);
}
// Provider is imported from a "use client" module internally.