Install any skill in seconds. Free to start, no credit card required.
Get Started Free →sickn33/use-dom
Use Expo DOM components to run web code in a webview on native and as-is on web. Migrate web code to native incrementally.
Passed 21 of 22 test cases with the skill, and 14 of 22 without it.
and 9 more in the full report
8 fixed13 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write the JSX snippet for instantiating a DOM component named `MyWebWidget` with webview scrolling disabled.
| Checked | Without skill | With skill |
|---|---|---|
| Passes scrollEnabled: false inside the dom prop. | Missed | Passed |
The instructions your model reads when the skill loads.
DOM components allow web code to run verbatim in a webview on native platforms while rendering as-is on web. This enables using web-only libraries like recharts, react-syntax-highlighter, or any React web library in your Expo app without modification.
Use DOM components when you need:
Avoid DOM components when:
_layout files cannot be DOM componentsCreate a new file with the 'use dom'; directive at the top:
// components/WebChart.tsx
"use dom";
export default function WebChart({
data,
}: {
data: number[];
dom: import("expo/dom").DOMProps;
}) {
return (
<div style={{ padding: 20 }}>
<h2>Chart Data</h2>
test cases passed, vs 14 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.