from angular to react dev tools(browser extension) coding and arch guides: provided by the community...

56
From Angular to React... and back again

Upload: others

Post on 22-May-2020

18 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

From Angular to React...and back again

Page 2: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Photo credit: @jwcarrol

Page 3: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

@simona_cotin @hackawaye

Page 4: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

One framework. Mobile & desktop.

Page 5: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Release date: September, the 14th 2014 Contributors: 462 License: MIT

Page 6: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Intro - Angular

History - misko hevery

Page 7: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Keep Your Minds Open

• ES6

Page 8: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Keep Your Minds Open

• ES6 • Web components

Page 9: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Keep Your Minds Open

• ES6 • Web components • React

Page 10: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Keep Your Minds Open

• ES6 • Web components • React • RxJS

Page 11: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Keep Your Minds Open

• ES6 • Web components • React • RxJS • Typescript

Page 12: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Keep Your Minds Open

• ES6 • Web components • React • RxJS • Typescript • EmberCli

Page 13: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Performance is not a single number

Startup

Speed

First Time Render Update

Render

Route Transition Change Detection

Memory

Pressure

Page 14: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Lazy Loading

Page 15: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

AoT

● Faster rendering ● Fewer asynchronous requests ● Smaller Angular framework download

size ● Detect template errors earlier ● Better security

Page 16: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

AoT

Page 17: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Tree Shaking

Page 18: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Angular Cli

Page 19: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

REACT

A JAVASCRIPT LIBRARY FOR BUILDING USER INTERFACES

Page 20: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Release date: May, the 26th 2013 Contributors: 1034 License: BSD

Page 21: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

● Component based architecture ● Predictable state management (Redux +

Middlewares) ● ES6 ● Flow (strongly typed)

Page 22: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet
Page 23: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

● Virtual dom ● Reconciliation algorithm v1 a.k.a. Stack

reconciler (2013) ● Reconciliation algorithm v2 a.k.a Fiber

(2016)

Page 24: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet
Page 25: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet
Page 26: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet
Page 27: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Getting started

Page 28: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

vs

Page 29: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet
Page 30: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet
Page 31: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

vs

Page 32: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

vs

Page 33: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

vs

Page 34: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

vs

Page 35: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

vs

Page 36: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Wait, how do I manage state?

vs

predictable state container for JavaScript apps

Page 37: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

vs

Page 38: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

vs

Page 39: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Where did $http go?

vs

“..not a framework” -every React developer out there

axios

superagent

fetch

Page 40: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Wait, how do I pass data between components?

vsParent To child

Page 41: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Wait, how do I pass data between components?

vsChild To Parent

Page 42: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Wait, how do I pass data between components?

vs

Component To Component

Page 43: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Back to Angular

Page 44: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Back to Angular

Page 45: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Back to Angular

Stateful vs Stateless

Page 46: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Tooling

Page 47: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Angular CLIby

Angular Augury Language ServicesProtractor

Page 48: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

● Linter: eslint-config-airbnb. ● Editor: any editor that allows you to

configure linting ● Debugging: Browser Console, React

Developer Tools(browser extension), Redux Dev Tools(browser extension)

● Coding and Arch Guides: provided by the community with love

Page 49: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Challenges

Page 50: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet
Page 51: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

● Angular Style Guide

● Typescript

● UpgradeModule

● Upgrade cheatsheet

Page 52: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet
Page 53: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

● Can prove difficult to architect a large app

● State management and asynchronous data can be confusing

● There is no unified way of doing things, only recommendations

Page 54: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet
Page 55: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Who wins?

Page 56: From Angular to React Dev Tools(browser extension) Coding and Arch Guides: provided by the community with love. Challenges Angular Style Guide Typescript UpgradeModule Upgrade cheatsheet

Thank you!

@simona_cotin @hackawaye