Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

use-dom

Skill by sickn33

Use Expo DOM components to run existing React web code in a webview on native and render it as-is on web. It is for Expo developers who want to reuse web libraries or migrate web components to native incrementally.

  • Score 92
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install use-dom

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/use-dom ~/.claude/skills/use-dom

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install use-dom in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill explains how to use Expo DOM components. A file marked with the 'use dom' directive can run web code, including web-only libraries such as recharts and react-syntax-highlighter, inside a webview on iOS (WKWebView) and Android (WebView). On web, the component renders as-is with no webview wrapper.

The skill covers the required dom prop and its options, passing async native functions into the webview as props, and using expo-router Link inside DOM components. It also explains that router hooks such as useLocalSearchParams need values passed as props from a native parent. It is aimed at Expo developers who want to bring web code into a native app without rewriting it, and it lists cases where DOM components are a poor fit, such as when native performance is critical.

Written from the project's SKILL.md and checked against it.

What it can do

  • 'use dom' componentsCreates a React component file that runs web code in a webview on native and as-is on web.
  • dom prop optionsConfigures the webview with options such as scrollEnabled, contentInsetAdjustmentBehavior and style.
  • Native action callbacksPasses async native functions as props so the webview component can call native code.
  • Web library usageShows how to use web libraries such as recharts and react-syntax-highlighter in DOM components.
  • Expo Router in DOMShows how Link and useRouter work inside DOM components and how to pass router values as props.
  • DOM environment checkUses IS_DOM from expo/dom to detect whether code runs inside a DOM component.
  • CSS and assetsExplains how to include CSS and bundled assets in DOM component files.

What you need

  • An Expo app
  • expo-router, for the routing examples

Try asking

  • Create a DOM component that renders a recharts line chart from an array of data
  • Wrap this React web component in an Expo 'use dom' component
  • Expose a native alert function to a DOM component as an async prop

Good to know

  • The webview has its own JavaScript context and cannot directly share state with native code.
  • _layout files cannot be DOM components.
  • Router hooks such as useLocalSearchParams do not work directly inside DOM components.
  • Web libraries depend on target WebView APIs and bundler support, so compatibility is not guaranteed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/use-dom/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB
  • agents/openai.yaml358 B

Alternatives to use-dom

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

use-dom: common questions

Can I use web libraries like recharts in an Expo app?

The source says DOM components let you use web-only libraries such as recharts, react-syntax-highlighter, or other React web libraries without modification. It also notes that compatibility depends on the target WebView and bundler support.

Does a DOM component render differently on web?

On web, the component is rendered as-is with no webview wrapper, and the dom prop is ignored. The source recommends testing on all platforms because web rendering may differ slightly from native webviews.

How do I get route parameters into a DOM component?

Read the values in the native parent screen with hooks such as useLocalSearchParams or usePathname, then pass them to the DOM component as props.

How do I install use-dom?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is use-dom free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is use-dom safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to use-dom?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

use-dom Install

Add to stack

Loading.