Skip to content

@context-action/react Pattern Guide

Complete guide to the core patterns available in @context-action/react framework.

Note: This guide has been moved to the Patterns section for better organization.

📋 Quick Reference

Choose the right pattern for your use case:

PatternUse CaseImportBest For
🎯 Action OnlyAction dispatching without storescreateActionContextEvent systems, command patterns
🏪 Store OnlyState management without actionscreateStoreContextPure state management, data layers
🔧 Ref Context (Advanced)Direct DOM manipulation with zero re-renderscreateRefContextHigh-performance UI, animations, real-time interactions
⚡ Selective Subscription (Advanced)Performance optimization through strategic subscription managementPattern combinationHigh-frequency updates, performance-critical apps

For complex applications, compose patterns together for maximum flexibility and separation of concerns.

📚 Detailed Documentation

Core Framework Patterns

Advanced Patterns

Implementation Patterns

Migration Guide

From Legacy Patterns

For users upgrading from earlier versions, see the Migration Guide for comprehensive upgrade instructions.

🔍 Examples

See the examples/ directory for complete working examples of each pattern and the Pattern Guide documentation for comprehensive implementation details.

Released under the Apache-2.0 License.