facebook / react-strict-dom

React Strict DOM (RSD) is a subset of React DOM, imperative DOM, and CSS that supports web and native targets
MIT License
2.97k stars 149 forks source link

feat: Export Element and utility types from react-strict-dom #90

Closed nmn closed 1 month ago

nmn commented 1 month ago

Resolves #88

Creates a new file called StrictTypes that re-exports all the element types, DOM Props and Strict Props.

The index.js for both dom and native are then able to re-export this one common file.

After this PR, all the various Element or other types that might be need can be imported directly from 'react-strict-dom'.

github-actions[bot] commented 1 month ago

compressed-size: runtime library

Size change: 0.00 kB Total size: 18.78 kB

View unchanged | Filename: gzip (minify) | kB size | kB change | % change | | :--- | :--- | :--- | :--- | | `./packages/react-strict-dom/dist/dom/index.js` | **2.99** (8.99) | **0.00** (0.00) | **0.0%** (0.0%) | | `./packages/react-strict-dom/dist/dom/runtime.js` | **0.95** (2.33) | **0.00** (0.00) | **0.0%** (0.0%) | | `./packages/react-strict-dom/dist/native/index.js` | **14.84** (46.31) | **0.00** (0.00) | **0.0%** (0.0%) |
necolas commented 1 month ago

Thanks, LGTM!