reactumg-architecture

Bridge React components to UE5 UMG widgets via Puerts.

1|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/15195999826/LomoMarketplace --skill reactumg-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reactumg-architecture
Source: https://github.com/15195999826/LomoMarketplace/tree/main/plugins/UE_ReactUMG/skills/reactumg-architecture/SKILL.md
Command: npx skills add https://github.com/15195999826/LomoMarketplace --skill reactumg-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a thorough breakdown of how ReactUMG maps React concepts to UE5 UMG, including the three-layer model and the reconciler-hostConfig approach.

Core Features & Use Cases

  • Three-layer model: TS Layer, React-Reconciler, C++ Layer explained.
  • UWidget wrapping: how TS exposes props, events, and slots to native widgets.
  • Architecture decisions: why Puerts bridge and minimal C++ surface enable performance.

Quick Start

Read the ReactUMG architecture guide to understand how TS components translate to UE widgets.

Frequently Asked Questions about reactumg-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render React components as UMG widgets in Unreal Engine 5?

ReactUMG bridges React components to UE5 UMG widgets through a three-layer architecture: TypeScript layer, React reconciler, and C++ layer. The reconciler maps React's virtual DOM updates to native widget state changes, while Puerts handles TypeScript-to-C++ communication. This enables React's declarative UI patterns to control UMG widgets with automatic event binding and property synchronization.

What is the reconciler-hostConfig approach in ReactUMG architecture?

The reconciler-hostConfig pattern separates React's update logic from platform-specific rendering. The hostConfig defines how React reconciler operations translate to UMG widget creation, property updates, and event handling. This decoupling lets React manage UI state while the hostConfig ensures changes sync to native UE5 widgets without tight coupling.

Do I need extensive C++ code to use ReactUMG with React and Puerts?

No. ReactUMG uses a minimal C++ surface of two classes and five functions, keeping most logic in TypeScript. Puerts bridges React components and TypeScript to C++, while the small C++ footprint handles core widget lifecycle and property binding. This design prioritizes performance and type safety without requiring deep C++ expertise.

How does ReactUMG handle event binding and lifecycle management between React and UMG?

ReactUMG automatically synchronizes React component lifecycle to UWidget lifecycle through the reconciler. Events from UMG widgets trigger React state updates via the hostConfig's event-binding layer, while React prop changes propagate back to widget properties. This bidirectional sync ensures consistent state across the React and UMG boundaries.

Can ReactUMG wrap native UE5 UWidget properties and slots as React props?

Yes. The TypeScript layer exposes native UWidget properties and event slots as React component props. This lets you declare UMG widgets using React's compositional model while maintaining full access to underlying UE5 widget capabilities, including slots for child widgets and all native properties.