use-dom

Execute web code and React components in Expo apps via webviews.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/keremtoker468-dotcom/restoran --skill use-dom-keremtoker468-dotcom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: use-dom
Source: https://github.com/keremtoker468-dotcom/restoran/tree/main/.claude/skills/use-dom
Command: npx skills add https://github.com/keremtoker468-dotcom/restoran --skill use-dom-keremtoker468-dotcom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to seamlessly integrate web-only libraries and existing React web code directly into their Expo applications, bridging the gap between web and native development.

Core Features & Use Cases

  • Web-only Libraries: Utilize libraries like recharts, react-syntax-highlighter, or any React web library that relies on DOM APIs within your Expo app.
  • Incremental Migration: Gradually bring existing React web components to a native environment without a complete rewrite.
  • Complex Layouts & Embeds: Handle intricate HTML/CSS layouts or embed external content requiring a browser context.
  • Use Case: Integrate a complex charting library like recharts into your Expo app to visualize data, which would be difficult or impossible with standard React Native components.

Quick Start

Use the use-dom skill to create a new component file with the 'use dom'; directive at the top.

Frequently Asked Questions about use-dom

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

FAQPage Schema
How do I use web-only React libraries in Expo apps?

To use web-only React libraries in Expo apps, add the 'use dom'; directive at the top of your component file. This executes web code and DOM-dependent libraries via webviews on native platforms.

Can I run existing React web code in React Native without rewriting it?

Yes, you can run existing React web code in React Native without a complete rewrite by using the 'use dom'; directive. This approach supports incremental migration of web codebases into native environments.

Does the 'use dom' directive support complex HTML and CSS layouts in Expo?

The 'use dom' directive supports complex HTML and CSS layouts in Expo applications. It handles intricate web styling, embeds external content with iframes, and enables web graphics APIs within native platforms.

What are the requirements for DOM components in Expo?

DOM components in Expo require the 'use dom'; directive at the top of the file and serializable props. This allows the web code to execute correctly via webviews on native platforms and directly on the web.

Why use webviews for React web components in an Expo application?

Using webviews for React web components in Expo bridges web and native development. It allows you to integrate charting libraries like recharts or syntax highlighters that rely on DOM APIs directly into your mobile app.

Are there limitations when embedding web graphics APIs in Expo?

Embedding web graphics APIs in Expo requires serializable props for DOM components and operates within a webview context. This approach is designed for incremental migration rather than complete native rewrites.