Skip to content

Instantly share code, notes, and snippets.

@nguyenit67
Created December 25, 2021 04:04
Show Gist options
  • Select an option

  • Save nguyenit67/643e3b4c737b79ca22636f301c6d97ef to your computer and use it in GitHub Desktop.

Select an option

Save nguyenit67/643e3b4c737b79ca22636f301c6d97ef to your computer and use it in GitHub Desktop.
Component hierarchy order in src/index.js
ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
<BrowserRouter>
<SnackbarProvider anchorOrigin={{ vertical: 'top', horizontal: 'right' }}>
<App />
</SnackbarProvider>
</BrowserRouter>
</Provider>
</React.StrictMode>,
document.getElementById('root')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment