react-strict-dom
Installation
SKILL.md
React Strict DOM Setup for Expo
This guide covers setting up react-strict-dom in an Expo project with Tailwind CSS v4 and react-native-css for universal app development.
Overview
react-strict-dom provides a subset of HTML/CSS that works identically across web and native platforms. This setup includes:
- Babel preset - Transforms react-strict-dom components for each platform
- PostCSS plugin - Processes styles for web builds
- CSS directive - Enables react-strict-dom styles in global CSS
- HTML wrapper components - CSS-wrapped primitives with Tailwind className support
Installation
Install react-strict-dom using bun: