Skip to main content

API Reference

Welcome to the Refract API reference documentation. This section provides detailed information about the core APIs available in Refract.

Core APIs

  • createApp - Initialize a new Refract application
  • createComponent - Create a new component
  • useLens - Access the lens system for state management
  • useOptic - Work with optics for state manipulation
  • createOptic - Create reactive references to nested state

Advanced Topics

Guides

Examples

Check out our examples repository for complete code samples and usage patterns.