onMount runs as soon as when the part turns into seen. onUnmount runs as soon as when it leaves. onError catches something both of them throws and receives { supply, error }, the place supply is "mount", "unmount", "beforeDispose", or "motion". The agent doesn’t write a return worth, doesn’t choose a dependency array, doesn’t title a cleanup operate. There may be nothing to neglect.
We are saying that XMLUI is to React as Java and C# are to C++: a managed language that abolishes many sorts of errors and vulnerabilities. In each circumstances there are legitimate causes to pierce the abstraction and attain for low-level primitives, however that ought to be the exception not the rule. If most of what wants doing can occur in a managed layer, it ought to.
Wrapping React parts
XMLUI parts are wrappers round React parts; they expose properties and APIs for declarative use. The core set of parts delivered within the XMLUI runtime deal with structure, knowledge entry, lists, tables, and UI controls together with buttons, switches, and sliders. Extra superior parts like ECharts, Tiptap, and Masonry are wrapped in the identical manner and delivered as loadable extensions. All parts share a standard mechanism for semantic tracing. When enabled, semantic tracing captures a wealthy historical past that features API calls and outcomes, handler timings, and — that is the semantic half — hint occasions keyed to ARIA labels.
