@usemotif/react
v1.1.5
Published
DOM bindings for motif-js: Box / Stack / Pressable / styled() targeting React + react-dom.
Readme
@usemotif/react
DOM bindings for motif-js.
This package ships the web renderer: Box, Stack, Pressable, styled(), the SSR style collector, and the rest of the React + react-dom surface.
Most users want usemotif instead — it re-exports this package on web and @usemotif/react-native on native via the react-native export condition, so one import site works on both platforms. Install @usemotif/react directly only when you want the web renderer without the cross-platform aggregation (e.g., a tree-shaking-sensitive build, or to avoid pulling in @usemotif/react-native as a transitive dependency).
History breadcrumb. This package was
@motif-js/react-webin v1, then@motif-js/reactin v2 (recycling the v1 aggregator name, which moved to the unscopedusemotifmeta package). v3 consolidates the sibling packages under@usemotif/*; this package landed as@usemotif/reactat1.0.0. See the v2 → v3 migration guide before upgrading from v2 (or the v1 → v2 guide if you're jumping from v1).
Install
yarn add @usemotif/react