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
0
87
es6-in-production
pramendra
September 22, 2017
Tweet
Share
More Decks by pramendra
See All by pramendra
Why not React Native - JP
pramendra
3
1.1k
Why not React Native - EN
pramendra
0
310
Consulting in 2020
pramendra
0
84
Other Decks in Technology
See All in Technology
かわいい身体と声を持つ そういうものに私はなりたい
yoshimura_datam
0
230
AI との良い付き合い方を僕らは誰も知らない (WSS 2026 静岡版)
asei
1
370
形式手法特論:コンパイラの「正しさ」は証明できるか? #burikaigi / BuriKaigi 2026
ytaka23
17
6.4k
Kiro Power - Amazon Bedrock AgentCore を学ぶ、もう一つの方法
r3_yamauchi
PRO
0
110
ファインディにおけるフロントエンド技術選定の歴史
puku0x
2
1.6k
ソフトとハード両方いけるデータ人材の育て方
waiwai2111
1
540
GitHub Copilot CLI 現状確認会議
torumakabe
10
3.3k
Eight Engineering Unit 紹介資料
sansan33
PRO
0
6.3k
Hardware/Software Co-design: Motivations and reflections with respect to security
bcantrill
1
220
AI に「学ばせ、調べさせ、作らせる」。Auth0 開発を加速させる7つの実践的アプローチ
scova0731
0
330
Proxmoxで作る自宅クラウド入門
koinunopochi
0
170
Vivre en Bitcoin : le tutoriel que votre banquier ne veut pas que vous voyiez
rlifchitz
0
340
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
220
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
140
For a Future-Friendly Web
brad_frost
181
10k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Designing Powerful Visuals for Engaging Learning
tmiket
0
200
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
47
HDC tutorial
michielstock
1
330
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
260
Odyssey Design
rkendrick25
PRO
0
470
Reality Check: Gamification 10 Years Later
codingconduct
0
2k
Testing 201, or: Great Expectations
jmmastey
46
7.9k
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