use-dom

Run React web components in WebView on native platforms and as-is on web.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/TabTabGo/dev-agents --skill use-dom-tabtabgo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: use-dom
Source: https://github.com/TabTabGo/dev-agents/tree/main/skills/use-dom
Command: npx skills add https://github.com/TabTabGo/dev-agents --skill use-dom-tabtabgo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables React web code to run verbatim in a webview on native platforms while rendering as-is on web, facilitating the reuse of web libraries and components in Expo apps.

Core Features & Use Cases

  • Web Library Integration: Use React web-based libraries like charts or syntax highlighters within React Native apps.
  • Code Migration & Compatibility: Migrate existing web code to native incrementally without rewriting.
  • Use Case: You want to embed a React chart library into your mobile app without native rewriting; this Skill provides a unified way to do that.

Quick Start

Create a component with 'use dom;' directive at the start, import web libraries, and include a dom prop for configuration, then embed it into your app.

Frequently Asked Questions about use-dom

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

FAQPage Schema
How do I run React web components in React Native without rewriting code?▼

To run React web components in React Native, use the 'use dom;' directive at the start of your component. This executes web code verbatim in a WebView on native platforms while rendering as-is on the web.

Can I use third-party web libraries like charting tools in an Expo app?▼

Yes, you can embed third-party web libraries like charts or syntax highlighters in Expo apps. By using the 'use dom;' directive, the library executes within a WebView on native without requiring native rewrites.

What is the best way to migrate existing web code to native incrementally?▼

The best way to migrate web code to native incrementally is using the 'use dom;' directive. It allows you to embed complex HTML, CSS, and dynamic content directly into React Native environments without rewriting existing logic.

Does 'use dom' work for both web and native platforms simultaneously?▼

Yes, 'use dom' works for both. It renders web-compatible code as-is on web platforms while automatically executing the same code within a WebView on native platforms, ensuring cross-platform compatibility.

Do I need a dom prop to configure web components in React Native?▼

Yes, you need to include a 'dom' prop for configuration when embedding your web components. This prop works alongside the 'use dom;' directive to properly handle complex HTML, CSS, and dynamic content in React Native.