facebook / react-strict-dom

React Strict DOM (RSD) standardizes the development of styled React components for web and native.
https://facebook.github.io/react-strict-dom
MIT License
3.2k stars 161 forks source link

Update flow and fix TS types generation #187

Closed necolas closed 3 months ago

necolas commented 3 months ago

When generating TS types:

Fix #113 Close #155

necolas commented 3 months ago

cc @efoken

github-actions[bot] commented 3 months ago

workflow: benchmarks/size

Comparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better. Results Base Patch Ratio
react-strict-dom/dist/dom/index.js
· compressed 2,573 2,573 1.00
· minified 8,823 8,823 1.00
react-strict-dom/dist/dom/runtime.js
· compressed 836 836 1.00
· minified 2,365 2,365 1.00
react-strict-dom/dist/native/index.js
· compressed 15,088 15,088 1.00
· minified 54,987 54,987 1.00
github-actions[bot] commented 3 months ago

workflow: benchmarks/perf (native)

Comparison of performance test results, measured in operations per second. Larger is better. Results Base Patch Ratio
css.create
· small 1,132,332 1,144,721 1.01 +
· small with units 441,971 445,608 1.01 +
· small with variables 666,314 688,805 1.03 +
· several small 329,973 329,188 1.00 -
· large 209,318 208,551 1.00 -
· large with polyfills 147,223 149,231 1.01 +
· complex 99,198 100,752 1.02 +
· unsupported 221,735 218,325 0.98 -
css.createTheme
· simple theme 222,928 223,832 1.00 +
· polyfill theme 209,715 210,999 1.01 +
css.props
· small 241,342 241,978 1.00 +
· small with units 187,738 188,728 1.01 +
· small with variables 104,495 103,666 0.99 -
· small with variables of units 73,625 73,711 1.00 +
· large 103,088 103,357 1.00 +
· large with polyfills 25,622 25,552 1.00 -
· complex 17,551 17,562 1.00 +
· unsupported 75,621 75,499 1.00 -
· simple merge 160,945 161,033 1.00 +
· wide merge 13,527 13,457 0.99 -
· deep merge 13,304 13,384 1.01 +
· themed merge 32,198 31,672 0.98 -