@motif-js/react
v2.0.0
Published
DOM bindings for motif-js: Box / Stack / Pressable / styled() targeting React + react-dom.
Downloads
116
Readme
@motif-js/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 motif-js instead — it re-exports this package on web and @motif-js/react-native on native via the react-native export condition, so one import site works on both platforms. Install @motif-js/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 @motif-js/react-native as a transitive dependency).
Renamed in v2.0.0. This package was previously published as
@motif-js/react-web. The npm name@motif-js/reactwas previously the cross-platform aggregator; that role moved to the unscopedmotif-jspackage. See the migration guide before upgrading.
Install
yarn add @motif-js/react