Basic Custom Page
Custom pages are just regular React components. You can create them anywhere in your application:Registering Custom Routes
With React Router
With Next.js App Router
With Remix
Adding Custom Pages to Menu
To show custom pages in the sidebar menu, you can use themeta.label property or customize the sider:
Using Resource Configuration
Custom Sider with Menu Items
Dashboard with Statistics
A common use case is creating a dashboard with various statistics:Settings Page
A settings page typically updates user preferences:Reports Page
Generate and display reports with charts:Profile Page
Display and edit user profile information:Using Custom Hooks
Create reusable hooks for custom pages:Access Control for Custom Pages
Protect custom pages with access control:Layout Integration
Custom pages should use your application’s layout:Best Practices
- Use Refine hooks: Leverage
useCustom,useCustomMutationfor data fetching - Consistent styling: Match your custom pages with resource pages
- Loading states: Always show loading indicators
- Error handling: Handle errors gracefully
- Breadcrumbs: Add breadcrumbs for navigation
- Access control: Protect sensitive custom pages
- SEO: Set proper page titles and meta tags
- Mobile responsive: Ensure pages work on all devices