📄️ Custom Optics
Custom optics let you create reusable, composable logic patterns that work seamlessly with Refract's reactivity system. Unlike traditional React hooks, optics provide dependency-aware caching, animation-aware transitions, and automatic cleanup—making them ideal for complex stateful logic.
📄️ Compiler Optimization
Refract's lightweight compiler transforms your code at build time to optimize performance, bundle size, and runtime behavior. The compiler performs static analysis to eliminate unused code, optimize reactivity patterns, and generate efficient JavaScript.
📄️ TypeScript Integration
Refract provides comprehensive TypeScript support with full type inference, strict type checking, and enhanced developer experience. The framework is built with TypeScript from the ground up, ensuring seamless integration and excellent IntelliSense support.