Top Banner
03/06/2019 reveal.js localhost:8000/?print-pdf 1/86 ANGULAR VS REACT ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider
86

ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

May 21, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 1/86

ANGULAR VS REACTANGULAR VS REACTDavid DerichsMohamed HaridyCatherine Mamani VallesOskar Schachtschneider

Page 2: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 2/86

INHALTSVERZEICHNISINHALTSVERZEICHNISSingle Page ApplicationAngularReactUnterschiede zwischen Angular & ReactLive CodingFazit

Page 3: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 3/86

SINGLE PAGE APPLICATIONSINGLE PAGE APPLICATION

Page 4: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 4/86

SINGLE PAGE APPLICATIONSINGLE PAGE APPLICATIONServer liefert eine HTML aus

Page 5: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 5/86

SINGLE PAGE APPLICATIONSINGLE PAGE APPLICATIONServer liefert eine HTML aus

DOM wird jeweils aktualisiert

Page 6: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 6/86

SINGLE PAGE APPLICATIONSINGLE PAGE APPLICATIONServer liefert eine HTML aus

DOM wird jeweils aktualisiert

keine Verbindungsprobleme

Page 7: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 7/86

SINGLE PAGE APPLICATIONSINGLE PAGE APPLICATIONOffline-friendly

Bessere Userexperience

Page 8: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 8/86

VIELE UNTERNEHMEN BENUTZEN DIESEVIELE UNTERNEHMEN BENUTZEN DIESEGoogle

AmazonFacebookMicroso�

Page 9: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 9/86

ANGULARANGULAR

Page 10: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 10/86

KEY FACTSKEY FACTS

Page 11: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 11/86

KEY FACTSKEY FACTSWeb-Frontend Framework

Page 12: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 12/86

KEY FACTSKEY FACTSWeb-Frontend Framework

MVC

Page 13: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 13/86

KEY FACTSKEY FACTSWeb-Frontend Framework

MVC

Open Source - MIT Licence

Page 14: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 14/86

KEY FACTSKEY FACTSWeb-Frontend Framework

MVC

Open Source - MIT Licence

Angeführt von Google

Page 15: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 15/86

KEY FACTSKEY FACTSWeb-Frontend Framework

MVC

Open Source - MIT Licence

Angeführt von Google

TypeScript (Klassen, Typen, Schleifen ...)

Page 16: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 16/86

RELEVANZRELEVANZ

Page 17: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 17/86

USPUSP

Page 18: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 18/86

USPUSPPlatformen (Web, Mobile, Desktop)

Page 19: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 19/86

USPUSPPlatformen (Web, Mobile, Desktop)

Performance durch RxJS

Page 20: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 20/86

USPUSPPlatformen (Web, Mobile, Desktop)

Performance durch RxJS

Templating

Page 21: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 21/86

USPUSPPlatformen (Web, Mobile, Desktop)

Performance durch RxJS

Templating

Dependency & Package Management

Page 22: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 22/86

EVENT BINDINGEVENT BINDING <button (click)="onClickMe()">Click me!</button> @Component({ selector: 'app-click-me', template: ` <button (click)="onClickMe()">Click me!</button> {{clickMessage}}` }) export class ClickMeComponent { clickMessage = ''; onClickMe() { this.clickMessage = 'You are my hero!'; } }

Page 23: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 23/86

DATA BINDINGSDATA BINDINGS <element [ngclass]="{'aktiv': this.data.aktiv }">...</element> <button (click)="toggle()"></button> <element" *ngif="data.aktiv"> {{ beispieltext }} </element"> export class AppComponent { data = { aktiv: true; } text = 'beispieltext'; toggle(){ this.data.aktiv = false; } }

Page 24: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 24/86

SCHLEIFENSCHLEIFEN <li *ngfor="let movie of movies"> {{ movie }} </li> export class AppComponent { movies = ['Captain America', 'Iron Man', 'Hulk']; singleMovie = this.movies[0]; }

Page 25: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 25/86

REACTREACT

Page 26: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 26/86

WAS IST REACTWAS IST REACT

Page 27: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 27/86

WAS IST REACTWAS IST REACTUI Javascript Framework

Page 28: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 28/86

WAS IST REACTWAS IST REACTUI Javascript Framework

V in MVC

Page 29: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 29/86

WAS IST REACTWAS IST REACTUI Javascript Framework

V in MVC

SINGLE PAGE APPLICATION (SPA)

Page 30: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 30/86

WAS IST REACTWAS IST REACTUI Javascript Framework

V in MVC

SINGLE PAGE APPLICATION (SPA)

Entwickelt von facebook 2011

Page 31: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 31/86

WAS IST REACTWAS IST REACTUI Javascript Framework

V in MVC

SINGLE PAGE APPLICATION (SPA)

Entwickelt von facebook 2011

Apache License 2.0 2013

Page 32: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 32/86

WAS IST REACTWAS IST REACTUI Javascript Framework

V in MVC

SINGLE PAGE APPLICATION (SPA)

Entwickelt von facebook 2011

Apache License 2.0 2013

MIT license 2017

Page 33: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 33/86

BRAUCHE ICH REACT�BRAUCHE ICH REACT�

Page 34: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 34/86

WER BENUTZT REACTWER BENUTZT REACT

Page 35: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 35/86

WER BENUTZT REACTWER BENUTZT REACT

Page 36: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 36/86

WER BENUTZT REACTWER BENUTZT REACT

Page 37: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 37/86

WER BENUTZT REACTWER BENUTZT REACT

Page 38: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 38/86

WER BENUTZT REACTWER BENUTZT REACT

Page 39: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 39/86

WER BENUTZT REACTWER BENUTZT REACT

Page 40: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 40/86

WER BENUTZT REACTWER BENUTZT REACT

Page 41: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 41/86

WER BENUTZT REACTWER BENUTZT REACT

Page 42: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 42/86

WER BENUTZT REACTWER BENUTZT REACT

Page 43: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 43/86

WER BENUTZT REACTWER BENUTZT REACT

Page 44: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 44/86

WER BENUTZT REACTWER BENUTZT REACT

Page 45: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 45/86

WER BENUTZT REACTWER BENUTZT REACT

Page 46: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 46/86

USPUSP

Page 47: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 47/86

USPUSPComponents

Page 48: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 48/86

USPUSPComponents

JSX

Page 49: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 49/86

USPUSPComponents

JSX

virtual DOM

Page 50: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 50/86

VIRTUAL DOMVIRTUAL DOM

Page 51: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 51/86

EVENT BINDINGEVENT BINDING <button onclick="{this.handclick}">Clik me!</button> handleclick = (num) => {console.log(num)}

Page 52: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 52/86

DATA BINDINGDATA BINDING state = { defaultNumber: 1, selectedCounter: 0 } {this.setState({ selectedNumber: 5 })}

Page 53: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 53/86

SCHLEIFENSCHLEIFEN let list = [1, 2, 3, 4, 5, 6] list.map((number) => { console.log(number) return ( <react.fragment> <button onclick="{this.handleclick}">Click me!</button> {this.setState({ selectedNumber: 5 })} <div> {number}</div> </react.fragment> ) })

Page 54: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 54/86

UNTERSCHIEDEUNTERSCHIEDEANGULAR & REACTANGULAR & REACT

Page 55: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 55/86

Philosophie

Zielgruppe

Page 56: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 56/86

PHILOSOPHIEPHILOSOPHIE 

Angular React

Framework Library

erweitertete HTMLversion

JSX, eine XML-artigeSprache

Page 57: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 57/86

ZIELGRUPPEZIELGRUPPEAngular React

Enterprise Orientiert Web Entwickler Orientiert

Page 58: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 58/86

Angular React

Skalierte BusinessAnwendungen

Für komplexe UserInteractionen

MVVM Paradigma(MVC) Mehr V als MVC

Page 59: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 59/86

ANGULARANGULAR

Page 60: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 60/86

ANGULARANGULARist ein Framework

Page 61: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 61/86

ANGULARANGULARist ein Framework

eingebautes Routing

Page 62: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 62/86

ANGULARANGULARist ein Framework

eingebautes Routing

eingebautes State managment

Page 63: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 63/86

ANGULARANGULARist ein Framework

eingebautes Routing

eingebautes State managment

two-way binding

Page 64: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 64/86

ANGULARANGULAR

Page 65: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 65/86

ANGULARANGULARshadow DOM

Page 66: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 66/86

ANGULARANGULARshadow DOM

mit Tests im Sinn gebaut

Page 67: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 67/86

ANGULARANGULARshadow DOM

mit Tests im Sinn gebaut

Native Script

Page 68: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 68/86

ANGULARANGULARshadow DOM

mit Tests im Sinn gebaut

Native Script

Ionic

Page 69: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 69/86

REACTREACT

Page 70: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 70/86

REACTREACTist eine Library

Page 71: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 71/86

REACTREACTist eine Library

erweiterbar durch andere Libraries

Page 72: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 72/86

REACTREACTist eine Library

erweiterbar durch andere Libraries

Komponenten Basiert

Page 73: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 73/86

REACTREACTist eine Library

erweiterbar durch andere Libraries

Komponenten Basiert

kein two-way binding

Page 74: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 74/86

REACTREACT

Page 75: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 75/86

REACTREACTVirtual DOM

Page 76: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 76/86

REACTREACTVirtual DOM

Komponenten inital virtual gerendet, nur bei änderungneu

Page 77: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 77/86

REACTREACTVirtual DOM

Komponenten inital virtual gerendet, nur bei änderungneu

Seperation zwischen immutable und mutable state

Page 78: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 78/86

REACTREACTVirtual DOM

Komponenten inital virtual gerendet, nur bei änderungneu

Seperation zwischen immutable und mutable state

React kann leicht zu exisitierenden Applikationhinzugefügt werden

Page 79: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 79/86

LIVE BEISPIELLIVE BEISPIEL

Page 80: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 80/86

FAZITFAZIT

Page 81: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 81/86

Page 82: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 82/86

beide sind gut

Page 83: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 83/86

beide sind gut

kommt auf use case an

Page 84: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 84/86

beide sind gut

kommt auf use case an

größe von Applikation

Page 85: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 85/86

DANKE FÜR EUREDANKE FÜR EUREAUFMERKSAMKEITAUFMERKSAMKEIT

Page 86: ANGULAR VS REACT -  · 2019-06-06 · 03/06/2019 reveal.js localhost:8000/?print-pdf 1/ 86 ANGULAR VS REACT David Derichs Mohamed Haridy Catherine Mamani Valles Oskar Schachtschneider

03/06/2019 reveal.js

localhost:8000/?print-pdf 86/86

LINKSLINKShttps://reactjs.org/docs/getting-started.htmlhttps://angular.io/guide/quickstart