15Examples
100%Interactive
ZeroBuild Step

Getting Started

  • Basic Usage

    JSCoherent

    Greeting components with conditional rendering and user cards.

    ▶️ Run:node examples/basic-usage.js

Components

  • Component Composition

    JSCoherent

    HOCs, state management, and advanced component patterns.

    ▶️ Run:node examples/component-composition.js
  • Error Boundaries

    JSCoherent

    Graceful error handling with fallback components.

    ▶️ Run:node examples/error-boundary-demo.js
  • State Management

    JSCoherent

    Reactive state with observables, computed properties, and persistence.

    ▶️ Run:node examples/state-management-demo.js

Features

  • Event Bus

    JSCoherent

    Publish-subscribe event system for component communication.

    ▶️ Run:node examples/event-bus-demo.js
  • Plugin System

    JSCoherent

    Extensible plugin architecture with lifecycle hooks.

    ▶️ Run:node examples/plugin-system-demo.js
  • Runtime Features

    JSCoherent

    Core runtime utilities including rendering, caching, and monitoring.

    ▶️ Run:node examples/runtime-features-demo.js
  • Streaming SSR

    JSCoherent

    Stream HTML responses for faster time-to-first-byte.

    ▶️ Run:node examples/streaming.js

Client-Side

  • Client Router

    JSCoherent

    Client-side routing with prefetching, transitions, and guards.

    ▶️ Run:node examples/client-router-demo.js
  • Hydration

    JSCoherent

    Client-side hydration with Islands Architecture.

    ▶️ Run:node examples/hydration-demo.js

Integrations

  • Express Integration

    JSCoherent

    Using Coherent.js with Express.js for SSR.

    ▶️ Run:node examples/express-integration.js
  • Next.js Integration

    JSCoherent

    Using Coherent.js components inside Next.js applications.

    ▶️ Run:node examples/nextjs-integration.js

Full Apps

  • DevTools

    JSCoherent

    Developer tools with component inspector, profiler, and logger.

    ▶️ Run:node examples/devtools-demo.js
  • Forms & Validation

    JSCoherent

    Complete user registration form with validation and state management.

    ▶️ Run:node examples/forms-complete-example.js
  • Internationalization

    JSCoherent

    Multi-language blog application with locale switching.

    ▶️ Run:node examples/i18n-complete-example.js