https://github.com/vinhlh/react-size
The size of common React libraries
https://github.com/vinhlh/react-size
library performance react react-router size
Last synced: 2 months ago
JSON representation
The size of common React libraries
- Host: GitHub
- URL: https://github.com/vinhlh/react-size
- Owner: vinhlh
- License: mit
- Created: 2017-08-02T01:34:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-02T03:35:59.000Z (almost 9 years ago)
- Last Synced: 2025-07-26T06:30:32.491Z (11 months ago)
- Topics: library, performance, react, react-router, size
- Language: Shell
- Homepage:
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React sizes
The size of common React libraries.
> Make your code, not your framework the largest part of your app!
With applications that expecting the highest performance, the size is one of the important criteria we have to consider when choosing a library.
Every KB matters!
Notes: we have tree shaking ahead! So these values are only for reference.
## Non gzip
```
-rw-r--r-- 1 vinhlh staff 4.7K Aug 2 10:26 ReactRouterRedux.min.js
-rw-r--r-- 1 vinhlh staff 13K Aug 2 10:26 Recompose.min.js
-rw-r--r-- 1 vinhlh staff 127K Aug 2 10:26 react-dom.min.js
-rw-r--r-- 1 vinhlh staff 51K Aug 2 10:26 react-router-dom.min.js
-rw-r--r-- 1 vinhlh staff 27K Aug 2 10:26 react-router.min.js
-rw-r--r-- 1 vinhlh staff 37K Aug 2 10:26 react-with-addons.min.js
-rw-r--r-- 1 vinhlh staff 23K Aug 2 10:26 react.min.js
-rw-r--r-- 1 vinhlh staff 19K Aug 2 10:26 redux-actions.min.js
-rw-r--r-- 1 vinhlh staff 5.6K Aug 2 10:26 redux.min.js
-rw-r--r-- 1 vinhlh staff 38K Aug 2 10:26 styled-components.min.js
-rw-r--r-- 1 vinhlh staff 8.1K Aug 2 10:45 preact.min.js
-rw-r--r-- 1 vinhlh staff 41K Aug 2 10:45 react-intl.min.js
```
## Gzipped
```
-rw-r--r-- 1 vinhlh staff 1.6K Aug 2 10:26 ReactRouterRedux.min.js.gz
-rw-r--r-- 1 vinhlh staff 3.7K Aug 2 10:26 Recompose.min.js.gz
-rw-r--r-- 1 vinhlh staff 39K Aug 2 10:26 react-dom.min.js.gz
-rw-r--r-- 1 vinhlh staff 11K Aug 2 10:26 react-router-dom.min.js.gz
-rw-r--r-- 1 vinhlh staff 7.2K Aug 2 10:26 react-router.min.js.gz
-rw-r--r-- 1 vinhlh staff 12K Aug 2 10:26 react-with-addons.min.js.gz
-rw-r--r-- 1 vinhlh staff 7.7K Aug 2 10:26 react.min.js.gz
-rw-r--r-- 1 vinhlh staff 5.6K Aug 2 10:26 redux-actions.min.js.gz
-rw-r--r-- 1 vinhlh staff 2.2K Aug 2 10:26 redux.min.js.gz
-rw-r--r-- 1 vinhlh staff 13K Aug 2 10:26 styled-components.min.js.gz
-rw-r--r-- 1 vinhlh staff 3.4K Aug 2 10:45 preact.min.js.gz
-rw-r--r-- 1 vinhlh staff 11K Aug 2 10:45 react-intl.min.js.gz
```
## Results
| Library | Version | Size |
| ----------------- | :------ | -----:|
| React | 15.6.1 | 46.7K |
| React with addons | 15.6.1 | 51K |
| Redux | 3.7.2 | 2.2K |
| React Router | 4.1.2 | 19.8K |
| Styled components | 2.1.1 | 13K |
| Recompose | 0.24.0 | 3.7K |
| Redux Actions | 2.2.1 | 5.6K |
| Preact | 8.2.1 | 3.4K |
| React Intl | 2.3.0 | 11K |