- React Hooks: Pre-built hooks for all major email marketing operations
- Type Safety: Full TypeScript support with comprehensive type definitions
- API Abstraction: Clean abstractions over Simpu’s Email marketing API endpoints
- Optimistic Updates: Smart caching and optimistic UI updates for better user experience
When to Use the Core Package
Choose the core package when you:- Need custom UI implementations that don’t match the pre-built components
- Want maximum flexibility and control over your email marketing interface
- Are integrating email marketing features into an existing design system
- Require specific business logic that goes beyond standard implementations
- Prefer to build components from scratch using your preferred UI library
Installation
Install the core package alongside the main SDK:Quick Start
1. Setup the Provider
Wrap your application with theSimpuProvider
:
2. Use Core Hooks
Import and use hooks in your components:3. Handle Mutations
Create and update data with mutation hooks:Next Steps
Ready to dive deeper? Explore the specific hook categories:Broadcasts
Manage email campaigns, scheduling, and sending
Templates
Create and manage email templates
Recipients
Handle contact lists and recipient management
Sender Profiles
Configure sender identities and from addresses
Need UI Components? If you prefer pre-built components over custom
implementations, check out the UI Package which
provides ready-to-use React components built on top of these core hooks.