use-dom

Run DOM-dependent React components and libraries in Expo webviews.

1|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/luthebao/expo-template --skill use-dom-luthebao
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: use-dom
Source: https://github.com/luthebao/expo-template/tree/main/.claude/skills/use-dom
Command: npx skills add https://github.com/luthebao/expo-template --skill use-dom-luthebao

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill allows you to run web-only libraries and existing React web components directly within your Expo application on native platforms, bridging the gap between web and native development.

Core Features & Use Cases

  • Web-only Libraries: Integrate libraries like recharts, react-syntax-highlighter, or any DOM-dependent React web library without modification.
  • Incremental Migration: Gradually bring existing React web components to native.
  • Complex Layouts: Utilize advanced CSS features not available in React Native.
  • Use Case: Embed a complex charting library (like Recharts) or a rich text editor into your Expo app for a seamless user experience across web and native.

Quick Start

Create a new file with the 'use dom'; directive at the top to define a DOM component.

Frequently Asked Questions about use-dom

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

FAQPage Schema
How do I run web-only React components in an Expo application?▼

You can run web-only React components in Expo by using a directive to define DOM components that execute within a webview on native platforms. This bridges web and native development seamlessly.

Can I use charting libraries like Recharts in React Native?▼

Yes, you can use charting libraries like Recharts in React Native by running them within a webview. This approach embeds complex DOM-dependent charting libraries into Expo applications for cross-platform use.

What is the best way to migrate an existing React web codebase to native?▼

The best way to migrate a React web codebase to native is through incremental migration using a webview bridge. This allows you to gradually bring existing web components into Expo applications.

Does Expo support advanced CSS features not available in React Native?▼

Expo can support advanced CSS features not available in React Native by executing web code within a webview. This enables complex layouts and styling for web components running natively.

How do I integrate a rich text editor into an Expo app?▼

To integrate a rich text editor into an Expo app, execute the DOM-dependent editor code natively within a webview. This supports web-only libraries and provides a seamless cross-platform user experience.

Why do web libraries that depend on the DOM fail in React Native?▼

Web libraries fail in React Native because the native environment lacks a DOM. Using a webview to execute web-specific code bridges this gap, allowing DOM-dependent libraries to run natively.