Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
es6-in-production
Search
pramendra
September 22, 2017
Technology
99
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
es6-in-production
pramendra
September 22, 2017
More Decks by pramendra
See All by pramendra
Why not React Native - JP
pramendra
3
1.1k
Why not React Native - EN
pramendra
0
320
Consulting in 2020
pramendra
0
99
Other Decks in Technology
See All in Technology
Data Hubグループ 紹介資料
sansan33
PRO
0
3.2k
ブラウザ研修 2026
recruitengineers
PRO
6
1k
侵入は突然に 〜 IoTマルウェアと悪用される家庭の機器 ~ / When Intrusion Strikes: IoT Malware and the Abuse of Home Devices
nttcom
0
5.8k
Sets in Go
ramalho
1
760
Flutterをカメラで動かしたかった話
sony
1
140
MIRU 2026 チュートリアル
keisuke198619
0
920
今こそ聞きたいソフトウェア設計 ドメイン駆動設計再入門
masuda220
PRO
17
7.4k
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
19k
SO-101×VLAによる3色キューブのピック&プレース
abeja
0
210
Agent 時代の Kaggle 展望 / kaggle-in-the-agentic-era
upura
1
750
AIペネトレーションテスト・ セキュリティ検証「AgenticSec」紹介資料
laysakura
2
9k
AI-DLC実践録_フルサイクル開発への挑戦
miyuc
0
110
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Music & Morning Musume
bryan
47
7.3k
HDC tutorial
michielstock
2
790
Art, The Web, and Tiny UX
lynnandtonic
304
22k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.1k
Optimizing for Happiness
mojombo
378
71k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
410
Into the Great Unknown - MozCon
thekraken
41
2.7k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
890
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
340
Utilizing Notion as your number one productivity tool
mfonobong
4
540
Designing for humans not robots
tammielis
254
26k
Transcript
ES6 in Production Pramendra Gupta
ES6(ES2015)
const test = ({id, user}) => <h1><span>{id}</span>{user}</ h1>; ES6(ES2015)
const test = ({id, user}) => <h1><span>{id}</span>{user}</h1>; "use strict"; var
test = function test(_ref) { var id = _ref.id, user = _ref.user; return React.createElement( "h1", null, React.createElement( "span", null, id ), user ); }; ES6 ES5
We ship fallback to support legacy browser
Browser Support
Disadvantage of ES5 File Size Parse Time big large Debug
hard
None
<script type="module" />
None
async/await Classes Arrow functions Promises Map Set ES6 modules support
lands in browsers <script type="module" />
Advantage of ES6 version size(min+gzipped) parse time ES5 40k 360ms
ES6+ 20k 170ms File Size Parse Time small low Debug easy
ES6 Rocks
How do we use <!DOCTYPE html> <html> <head> <title>ES6 in
Production</title> <script type="module" src="bundle.js"></script> </head> <body> <div id="app"></div> <script nomodule src="bundle-legacy.js"></script> </body> </html>
Demo https://github.com/pramendra/es6-in-production