react.dev
react.dev copied to clipboard
feat: hide social banner on scroll
This hides social banner when scrolled on mobile/tablet.
Demo

Size Changes
📦 Next.js Bundle Analysis
This analysis was generated by the next.js bundle analysis action 🤖
⚠️ Global Bundle Size Increased
| Page | Size (compressed) |
|---|---|
global |
84.68 KB (🟡 +14 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
One Hundred Ninety-one Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
| Page | Size (compressed) | First Load |
|---|---|---|
/ |
48.03 KB (🟡 +61 B) |
132.71 KB |
/404 |
47.13 KB (🟡 +61 B) |
131.81 KB |
/apis |
47.91 KB (🟡 +61 B) |
132.59 KB |
/apis/createcontext |
49.66 KB (🟡 +61 B) |
134.34 KB |
/apis/reactdom |
47.85 KB (🟡 +62 B) |
132.53 KB |
/apis/render |
49.89 KB (🟡 +61 B) |
134.57 KB |
/apis/usecontext |
55.62 KB (🟡 +61 B) |
140.3 KB |
/apis/usereducer |
55.25 KB (🟡 +61 B) |
139.93 KB |
/apis/useref |
52.94 KB (🟡 +61 B) |
137.63 KB |
/apis/usestate |
58.89 KB (🟡 +61 B) |
143.57 KB |
/blog |
40.49 KB (🟡 +65 B) |
125.17 KB |
/blog/2013/06/02/jsfiddle-integration |
57.94 KB (🟡 +65 B) |
142.62 KB |
/blog/2013/06/05/why-react |
59.67 KB (🟡 +65 B) |
144.35 KB |
/blog/2013/06/12/community-roundup |
59.37 KB (🟡 +65 B) |
144.05 KB |
/blog/2013/06/19/community-roundup-2 |
60.03 KB (🟡 +65 B) |
144.71 KB |
/blog/2013/06/21/react-v0-3-3 |
58.09 KB (🟡 +65 B) |
142.77 KB |
/blog/2013/06/27/community-roundup-3 |
60.41 KB (🟡 +65 B) |
145.09 KB |
/blog/2013/07/02/react-v0-4-autobind-by-default |
58.71 KB (🟡 +65 B) |
143.39 KB |
/blog/2013/07/03/community-roundup-4 |
59.77 KB (🟡 +65 B) |
144.46 KB |
/blog/2013/07/11/react-v0-4-prop-validation-and-default-values |
58.58 KB (🟡 +65 B) |
143.26 KB |
/blog/2013/07/17/react-v0-4-0 |
59.29 KB (🟡 +65 B) |
143.97 KB |
/blog/2013/07/23/community-roundup-5 |
60.16 KB (🟡 +65 B) |
144.85 KB |
/blog/2013/07/26/react-v0-4-1 |
58.05 KB (🟡 +65 B) |
142.73 KB |
/blog/2013/07/30/use-react-and-jsx-in-ruby-on-rails |
58.65 KB (🟡 +65 B) |
143.33 KB |
/blog/2013/08/05/community-roundup-6 |
59.46 KB (🟡 +65 B) |
144.14 KB |
/blog/2013/08/19/use-react-and-jsx-in-python-applications |
58.67 KB (🟡 +65 B) |
143.35 KB |
/blog/2013/08/26/community-roundup-7 |
59.63 KB (🟡 +65 B) |
144.31 KB |
/blog/2013/09/24/community-roundup-8 |
61.06 KB (🟡 +65 B) |
145.74 KB |
/blog/2013/10/03/community-roundup-9 |
60 KB (🟡 +65 B) |
144.68 KB |
/blog/2013/10/16/react-v0.5.0 |
59.68 KB (🟡 +65 B) |
144.36 KB |
/blog/2013/10/29/react-v0-5-1 |
58.04 KB (🟡 +65 B) |
142.72 KB |
/blog/2013/11/06/community-roundup-10 |
61.66 KB (🟡 +65 B) |
146.34 KB |
/blog/2013/11/18/community-roundup-11 |
60.74 KB (🟡 +65 B) |
145.42 KB |
/blog/2013/12/18/react-v0.5.2-v0.4.2 |
58.52 KB (🟡 +65 B) |
143.2 KB |
/blog/2013/12/19/react-v0.8.0 |
58.93 KB (🟡 +65 B) |
143.62 KB |
/blog/2013/12/23/community-roundup-12 |
60.39 KB (🟡 +65 B) |
145.07 KB |
/blog/2013/12/30/community-roundup-13 |
60.17 KB (🟡 +65 B) |
144.85 KB |
/blog/2014/01/02/react-chrome-developer-tools |
58.43 KB (🟡 +65 B) |
143.11 KB |
/blog/2014/01/06/community-roundup-14 |
59.77 KB (🟡 +65 B) |
144.45 KB |
/blog/2014/02/05/community-roundup-15 |
60.99 KB (🟡 +65 B) |
145.67 KB |
/blog/2014/02/15/community-roundup-16 |
60.7 KB (🟡 +65 B) |
145.38 KB |
/blog/2014/02/16/react-v0.9-rc1 |
61.11 KB (🟡 +65 B) |
145.79 KB |
/blog/2014/02/20/react-v0.9 |
61.55 KB (🟡 +65 B) |
146.23 KB |
/blog/2014/02/24/community-roundup-17 |
60.41 KB (🟡 +65 B) |
145.09 KB |
/blog/2014/03/14/community-roundup-18 |
61.38 KB (🟡 +65 B) |
146.06 KB |
/blog/2014/03/19/react-v0.10-rc1 |
59.69 KB (🟡 +65 B) |
144.37 KB |
/blog/2014/03/21/react-v0.10 |
59.71 KB (🟡 +65 B) |
144.39 KB |
/blog/2014/03/28/the-road-to-1.0 |
59.82 KB (🟡 +65 B) |
144.5 KB |
/blog/2014/04/04/reactnet |
58.47 KB (🟡 +65 B) |
143.15 KB |
/blog/2014/05/06/flux |
58.59 KB (🟡 +65 B) |
143.27 KB |
/blog/2014/05/29/one-year-of-open-source-react |
58.81 KB (🟡 +65 B) |
143.5 KB |
/blog/2014/06/27/community-roundup-19 |
60.36 KB (🟡 +65 B) |
145.04 KB |
/blog/2014/07/13/react-v0.11-rc1 |
60.74 KB (🟡 +65 B) |
145.42 KB |
/blog/2014/07/17/react-v0.11 |
62 KB (🟡 +65 B) |
146.68 KB |
/blog/2014/07/25/react-v0.11.1 |
58.95 KB (🟡 +65 B) |
143.63 KB |
/blog/2014/07/28/community-roundup-20 |
60.5 KB (🟡 +65 B) |
145.18 KB |
/blog/2014/07/30/flux-actions-and-the-dispatcher |
60.13 KB (🟡 +65 B) |
144.82 KB |
/blog/2014/08/03/community-roundup-21 |
60.17 KB (🟡 +65 B) |
144.85 KB |
/blog/2014/09/03/introducing-the-jsx-specification |
58.17 KB (🟡 +65 B) |
142.85 KB |
/blog/2014/09/12/community-round-up-22 |
60.65 KB (🟡 +65 B) |
145.33 KB |
/blog/2014/09/16/react-v0.11.2 |
58.94 KB (🟡 +65 B) |
143.63 KB |
/blog/2014/09/24/testing-flux-applications |
62.12 KB (🟡 +65 B) |
146.8 KB |
/blog/2014/10/14/introducing-react-elements |
61.08 KB (🟡 +65 B) |
145.76 KB |
/blog/2014/10/16/react-v0.12-rc1 |
61.04 KB (🟡 +65 B) |
145.73 KB |
/blog/2014/10/17/community-roundup-23 |
61.61 KB (🟡 +65 B) |
146.29 KB |
/blog/2014/10/27/react-js-conf |
58.22 KB (🟡 +65 B) |
142.9 KB |
/blog/2014/10/28/react-v0.12 |
60.99 KB (🟡 +65 B) |
145.67 KB |
/blog/2014/11/24/react-js-conf-updates |
58.6 KB (🟡 +65 B) |
143.29 KB |
/blog/2014/11/25/community-roundup-24 |
61.84 KB (🟡 +65 B) |
146.53 KB |
/blog/2014/12/18/react-v0.12.2 |
58.63 KB (🟡 +65 B) |
143.32 KB |
/blog/2014/12/19/react-js-conf-diversity-scholarship |
59.03 KB (🟡 +65 B) |
143.71 KB |
/blog/2015/01/27/react-v0.13.0-beta-1 |
60 KB (🟡 +65 B) |
144.68 KB |
/blog/2015/02/18/react-conf-roundup-2015 |
61.98 KB (🟡 +65 B) |
146.66 KB |
/blog/2015/02/20/introducing-relay-and-graphql |
61.13 KB (🟡 +65 B) |
145.81 KB |
/blog/2015/02/24/react-v0.13-rc1 |
60.03 KB (🟡 +65 B) |
144.71 KB |
/blog/2015/02/24/streamlining-react-elements |
62.58 KB (🟡 +65 B) |
147.27 KB |
/blog/2015/03/03/react-v0.13-rc2 |
59.37 KB (🟡 +65 B) |
144.05 KB |
/blog/2015/03/04/community-roundup-25 |
60.33 KB (🟡 +65 B) |
145.01 KB |
/blog/2015/03/10/react-v0.13 |
60.65 KB (🟡 +65 B) |
145.33 KB |
/blog/2015/03/16/react-v0.13.1 |
58.47 KB (🟡 +65 B) |
143.15 KB |
/blog/2015/03/19/building-the-facebook-news-feed-with-relay |
61.23 KB (🟡 +65 B) |
145.91 KB |
/blog/2015/03/26/introducing-react-native |
58.36 KB (🟡 +65 B) |
143.04 KB |
/blog/2015/03/30/community-roundup-26 |
60.29 KB (🟡 +65 B) |
144.98 KB |
/blog/2015/04/17/react-native-v0.4 |
59.21 KB (🟡 +65 B) |
143.89 KB |
/blog/2015/04/18/react-v0.13.2 |
58.55 KB (🟡 +65 B) |
143.23 KB |
/blog/2015/05/01/graphql-introduction |
63.04 KB (🟡 +65 B) |
147.72 KB |
/blog/2015/05/08/react-v0.13.3 |
58.43 KB (🟡 +65 B) |
143.11 KB |
/blog/2015/05/22/react-native-release-process |
58.59 KB (🟡 +65 B) |
143.27 KB |
/blog/2015/06/12/deprecating-jstransform-and-react-tools |
59.04 KB (🟡 +65 B) |
143.72 KB |
/blog/2015/07/03/react-v0.14-beta-1 |
60.55 KB (🟡 +65 B) |
145.23 KB |
/blog/2015/08/03/new-react-devtools-beta |
59.15 KB (🟡 +65 B) |
143.83 KB |
/blog/2015/08/11/relay-technical-preview |
59.21 KB (🟡 +65 B) |
143.89 KB |
/blog/2015/08/13/reacteurope-roundup |
60.8 KB (🟡 +65 B) |
145.48 KB |
/blog/2015/09/02/new-react-developer-tools |
58.56 KB (🟡 +65 B) |
143.25 KB |
/blog/2015/09/10/react-v0.14-rc1 |
64.25 KB (🟡 +65 B) |
148.93 KB |
/blog/2015/09/14/community-roundup-27 |
60.72 KB (🟡 +65 B) |
145.41 KB |
/blog/2015/10/01/react-render-and-top-level-api |
59.7 KB (🟡 +65 B) |
144.38 KB |
/blog/2015/10/07/react-v0.14 |
64.74 KB (🟡 +65 B) |
149.42 KB |
/blog/2015/10/19/reactiflux-is-moving-to-discord |
60.45 KB (🟡 +65 B) |
145.13 KB |
/blog/2015/10/28/react-v0.14.1 |
58.46 KB (🟡 +65 B) |
143.14 KB |
/blog/2015/11/02/react-v0.14.2 |
58.49 KB (🟡 +65 B) |
143.17 KB |
/blog/2015/11/18/react-v0.14.3 |
58.61 KB (🟡 +65 B) |
143.29 KB |
/blog/2015/12/04/react-js-conf-2016-diversity-scholarship |
59.48 KB (🟡 +65 B) |
144.17 KB |
/blog/2015/12/16/ismounted-antipattern |
59.08 KB (🟡 +65 B) |
143.76 KB |
/blog/2015/12/18/react-components-elements-and-instances |
63 KB (🟡 +65 B) |
147.69 KB |
/blog/2015/12/29/react-v0.14.4 |
58.28 KB (🟡 +65 B) |
142.96 KB |
/blog/2016/01/08/A-implies-B-does-not-imply-B-implies-A |
59.3 KB (🟡 +65 B) |
143.98 KB |
/blog/2016/01/12/discontinuing-ie8-support |
58.11 KB (🟡 +65 B) |
142.79 KB |
/blog/2016/02/19/new-versioning-scheme |
59.49 KB (🟡 +65 B) |
144.17 KB |
/blog/2016/03/07/react-v15-rc1 |
62.24 KB (🟡 +65 B) |
146.92 KB |
/blog/2016/03/16/react-v15-rc2 |
59.1 KB (🟡 +65 B) |
143.78 KB |
/blog/2016/03/29/react-v0.14.8 |
58.24 KB (🟡 +65 B) |
142.92 KB |
/blog/2016/04/07/react-v15 |
66.43 KB (🟡 +65 B) |
151.11 KB |
/blog/2016/04/08/react-v15.0.1 |
58.99 KB (🟡 +65 B) |
143.67 KB |
/blog/2016/07/11/introducing-reacts-error-code-system |
58.71 KB (🟡 +65 B) |
143.39 KB |
/blog/2016/07/13/mixins-considered-harmful |
66.86 KB (🟡 +65 B) |
151.54 KB |
/blog/2016/07/22/create-apps-with-no-configuration |
62.18 KB (🟡 +65 B) |
146.87 KB |
/blog/2016/08/05/relay-state-of-the-state |
62.22 KB (🟡 +65 B) |
146.91 KB |
/blog/2016/09/28/our-first-50000-stars |
63.67 KB (🟡 +65 B) |
148.36 KB |
/blog/2016/11/16/react-v15.4.0 |
61.62 KB (🟡 +65 B) |
146.31 KB |
/blog/2017/04/07/react-v15.5.0 |
62.19 KB (🟡 +65 B) |
146.87 KB |
/blog/2017/05/18/whats-new-in-create-react-app |
61.59 KB (🟡 +65 B) |
146.27 KB |
/blog/2017/06/13/react-v15.6.0 |
60.21 KB (🟡 +65 B) |
144.89 KB |
/blog/2017/07/26/error-handling-in-react-16 |
60.56 KB (🟡 +65 B) |
145.24 KB |
/blog/2017/09/08/dom-attributes-in-react-16 |
60.99 KB (🟡 +65 B) |
145.67 KB |
/blog/2017/09/25/react-v15.6.2 |
59.32 KB (🟡 +65 B) |
144 KB |
/blog/2017/09/26/react-v16.0 |
64.45 KB (🟡 +65 B) |
149.13 KB |
/blog/2017/11/28/react-v16.2.0-fragment-support |
62.38 KB (🟡 +65 B) |
147.07 KB |
/blog/2017/12/07/introducing-the-react-rfc-process |
58.91 KB (🟡 +65 B) |
143.59 KB |
/blog/2017/12/15/improving-the-repository-infrastructure |
74.69 KB (🟡 +65 B) |
159.37 KB |
/blog/2018/03/01/sneak-peek-beyond-react-16 |
58.86 KB (🟡 +65 B) |
143.54 KB |
/blog/2018/03/27/update-on-async-rendering |
64.11 KB (🟡 +65 B) |
148.79 KB |
/blog/2018/03/29/react-v-16-3 |
60.92 KB (🟡 +65 B) |
145.6 KB |
/blog/2018/05/23/react-v-16-4 |
61.06 KB (🟡 +65 B) |
145.74 KB |
/blog/2018/06/07/you-probably-dont-need-derived-state |
64.72 KB (🟡 +65 B) |
149.4 KB |
/blog/2018/08/01/react-v-16-4-2 |
59.71 KB (🟡 +65 B) |
144.4 KB |
/blog/2018/09/10/introducing-the-react-profiler |
61.32 KB (🟡 +65 B) |
146 KB |
/blog/2018/10/01/create-react-app-v2 |
61.8 KB (🟡 +65 B) |
146.48 KB |
/blog/2018/10/23/react-v-16-6 |
61 KB (🟡 +65 B) |
145.68 KB |
/blog/2018/11/13/react-conf-recap |
58.71 KB (🟡 +65 B) |
143.39 KB |
/blog/2018/11/27/react-16-roadmap |
64.91 KB (🟡 +65 B) |
149.59 KB |
/blog/2018/12/19/react-v-16-7 |
59.83 KB (🟡 +65 B) |
144.52 KB |
/blog/2019/02/06/react-v16.8.0 |
62.1 KB (🟡 +65 B) |
146.78 KB |
/blog/2019/02/23/is-react-translated-yet |
61.66 KB (🟡 +65 B) |
146.35 KB |
/blog/2019/08/08/react-v16.9.0 |
64.6 KB (🟡 +65 B) |
149.28 KB |
/blog/2019/08/15/new-react-devtools |
59.21 KB (🟡 +65 B) |
143.89 KB |
/blog/2019/10/22/react-release-channels |
61.02 KB (🟡 +65 B) |
145.71 KB |
/blog/2019/11/06/building-great-user-experiences-with-concurrent-mode-and-suspense |
65.72 KB (🟡 +65 B) |
150.4 KB |
/blog/2020/02/26/react-v16.13.0 |
61.94 KB (🟡 +65 B) |
146.62 KB |
/blog/2020/08/10/react-v17-rc |
68.23 KB (🟡 +65 B) |
152.91 KB |
/blog/all |
56.51 KB (🟡 +65 B) |
141.19 KB |
/community |
47.72 KB (🟡 +61 B) |
132.4 KB |
/community/acknowledgements |
48.91 KB (🟡 +61 B) |
133.59 KB |
/community/meet-the-team |
49.6 KB (🟡 +61 B) |
134.29 KB |
/learn |
52.68 KB (🟡 +61 B) |
137.36 KB |
/learn/add-react-to-a-website |
52.79 KB (🟡 +61 B) |
137.48 KB |
/learn/adding-interactivity |
54.36 KB (🟡 +61 B) |
139.05 KB |
/learn/choosing-the-state-structure |
60.08 KB (🟡 +61 B) |
144.77 KB |
/learn/conditional-rendering |
52.32 KB (🟡 +61 B) |
137 KB |
/learn/describing-the-ui |
51.53 KB (🟡 +62 B) |
136.21 KB |
/learn/editor-setup |
49 KB (🟡 +61 B) |
133.68 KB |
/learn/escape-hatches |
47.05 KB (🟡 +61 B) |
131.73 KB |
/learn/extracting-state-logic-into-a-reducer |
57.72 KB (🟡 +61 B) |
142.4 KB |
/learn/importing-and-exporting-components |
50.71 KB (🟡 +61 B) |
135.4 KB |
/learn/installation |
48.32 KB (🟡 +61 B) |
133 KB |
/learn/javascript-in-jsx-with-curly-braces |
50.79 KB (🟡 +61 B) |
135.47 KB |
/learn/keeping-components-pure |
54.92 KB (🟡 +61 B) |
139.6 KB |
/learn/managing-state |
53.64 KB (🟡 +61 B) |
138.32 KB |
/learn/manipulating-the-dom-with-refs |
55.89 KB (🟡 +61 B) |
140.57 KB |
/learn/passing-data-deeply-with-context |
55.44 KB (🟡 +61 B) |
140.13 KB |
/learn/passing-props-to-a-component |
54.49 KB (🟡 +61 B) |
139.17 KB |
/learn/preserving-and-resetting-state |
58.46 KB (🟡 +61 B) |
143.14 KB |
/learn/queueing-a-series-of-state-updates |
52.29 KB (🟡 +61 B) |
136.97 KB |
/learn/react-developer-tools |
48.28 KB (🟡 +61 B) |
132.96 KB |
/learn/reacting-to-input-with-state |
56.9 KB (🟡 +61 B) |
141.58 KB |
/learn/referencing-values-with-refs |
53.8 KB (🟡 +60 B) |
138.49 KB |
/learn/render-and-commit |
50.79 KB (🟡 +61 B) |
135.47 KB |
/learn/rendering-lists |
54.88 KB (🟡 +61 B) |
139.56 KB |
/learn/responding-to-events |
53.81 KB (🟡 +60 B) |
138.49 KB |
/learn/scaling-up-with-reducer-and-context |
51.85 KB (🟡 +61 B) |
136.54 KB |
/learn/sharing-state-between-components |
52.94 KB (🟡 +61 B) |
137.62 KB |
/learn/start-a-new-react-project |
49.35 KB (🟡 +61 B) |
134.04 KB |
/learn/state-a-components-memory |
58.01 KB (🟡 +61 B) |
142.69 KB |
/learn/state-as-a-snapshot |
51.59 KB (🟡 +61 B) |
136.27 KB |
/learn/synchronizing-with-effects |
64.66 KB (🟡 +61 B) |
149.34 KB |
/learn/thinking-in-react |
53.65 KB (🟡 +61 B) |
138.33 KB |
/learn/updating-arrays-in-state |
55.88 KB (🟡 +61 B) |
140.57 KB |
/learn/updating-objects-in-state |
55.62 KB (🟡 +61 B) |
140.3 KB |
/learn/writing-markup-with-jsx |
51.04 KB (🟡 +63 B) |
135.72 KB |
/learn/you-might-not-need-an-effect |
62.98 KB (🟡 +61 B) |
147.66 KB |
/learn/your-first-component |
51.62 KB (🟡 +61 B) |
136.3 KB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 10% or more, there will be a red status indicator applied, indicating that special attention should be given to this.
@harish-sethuraman @gaearon any feedback/suggestions here?
Hey 👋🏻 Thanks for sending an PR. There is one another PR that fixes the same thing.
- https://github.com/reactjs/reactjs.org/pull/4713
@harish-sethuraman Yeah, I see there were some changes requested and that pr was not active ~1 month, so I tried a different approach here to fix the issue. Since on smaller devices, the social banner is taking much space, it would be good to fix this with either approach :)
Bump?