SlideShare a Scribd company logo
Igor Kosulin, 2015
AngularJS + React
Speedup research and comparison
What AngularJS is
● MVC client-side framework
● A bridge to future (Web Components, etc)
● Very opinionated framework
● A pretty good working concept how it can be
● Nice for web apps of small and middle size
● Declarative style
● Force to create separate modules
What React is
● Virtual DOM framework
● Use reactive concepts for DOM rendering
● Pretty straightforward
● JSX
● Everything is in jsx
● Force to create separate modules
● Thinking in React
Why do we need this
● Tired of Angular, want to move forward
● Want to try React
● Replace V in Angular MVC
● Performance issues
● Cause it’s fun to combine uncombinable
● As a proof of concept
Javascript evolution
● Simple effects on HTML-page
● Simple libraries
● DOM manipulation frameworks
● MVC frameworks, Virtual DOM frameworks
● Full-stack frameworks?
Haters
gonna
hate
What Angular haters say
● Slow two-way data binding
● Dependency Injection minification issue
● Too much: Provider, Service, Factory….
● Directives are too complex
● Hard to find developers who can use it
● Angular 2.0 is almost coming
● Poor docs, logic in views, debugging...
Angular 1.3 features
● Performance optimization (3-4x faster)
● Easier forms
● ARIA support
● Material design
Angular 2.0
● Total rewrite, but core concepts preserved
● Unified component model
● Modular, mobile-first
● Revised concept of “scope”
● Web Components, ES6, TypeScript 1.5
● Team will support 1.3 branch for 1.5-2 years
after 2.0 final release
● Team will write a converter for old code
Google vs Facebook
Angular + React = ?
Angular + React
= ngReact
● Angular module
● Can use React Components as directives
Test case #1
Javascript code
● Direct DOM manipulation
● Fastest possible version
jQuery code
● jQuery.append()
● Overhead of very small
● React code (React Component)
● Angular code
AngularJS + React
AngularJS + React
Test case #2
● React code (PersonRow)
● React code (PersonTable)
● React code (ModifiablePersonTable)
● React code (ModifiablePersonTable)
That’s finally it… :)
● Angular code
● Angular code (reusable FocusOn directive)
AngularJS + React
AngularJS + React
Comparison
Pros
● Angular code is shorter (23 js + 6 html vs 105 js)
● Angular is more responsive
Cons
● Angular is slower to render
● Angular is fatter (memory consumption)
When use ngReact
● For existing Angular apps only
● For very big lists (but prefer paging)
● For complex logic (but prefer optimizations)
● For easy slow migration
When use Angular
● For web apps small and middle size
● For fast prototyping
● For not very fat apps
● For newbies: a way to learn JS, they will
definitely meet all the issues
● For professionals: to write tiny solid code
● “Write less, do more” ⓒ jQuery
When use React
● Actually no limits, especially if you want to
write many lines of code
Thanks for your attention!
Any questions?

More Related Content

PDF
Angular 2 vs React
PDF
Angular 2 vs React. What to chose in 2017?
PDF
React vs angular
PDF
ReactJS or Angular
PDF
ReactJS vs AngularJS - Head to Head comparison
PPTX
Angular vs React: Building modern SharePoint interfaces with SPFx
PDF
Angular 2 overview
PPTX
Combining Angular and React Together
Angular 2 vs React
Angular 2 vs React. What to chose in 2017?
React vs angular
ReactJS or Angular
ReactJS vs AngularJS - Head to Head comparison
Angular vs React: Building modern SharePoint interfaces with SPFx
Angular 2 overview
Combining Angular and React Together

What's hot (20)

PPTX
React Vs AnagularJS
PPTX
AngularJS vs React JS vs Node JS: Which is Best For Web Development ?
PDF
React vs angular (mobile first battle)
PDF
Isolated React Js components
PDF
React vs Angular2
PDF
Angular js - 10 reasons to choose angularjs
PDF
What angular 13 will bring to the table
PDF
Transforming Front-End Disaster Code™ Into A Maintainable Masterpiece
PDF
Angular 2 interview questions and answers
PPTX
React js Online Training
PPTX
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
PPTX
AngularJS is awesome
PPTX
React or Angular and SharePoint Framework Development
PPTX
Reactjs workshop
PDF
Tech Talk on ReactJS
PPTX
Angular js tutorial slides
PDF
Unit testing
PDF
Gettings started with the superheroic JavaScript library AngularJS
PPTX
AngularJS One Day Workshop
PPTX
Latest Javascript MVC & Front End Frameworks 2017
React Vs AnagularJS
AngularJS vs React JS vs Node JS: Which is Best For Web Development ?
React vs angular (mobile first battle)
Isolated React Js components
React vs Angular2
Angular js - 10 reasons to choose angularjs
What angular 13 will bring to the table
Transforming Front-End Disaster Code™ Into A Maintainable Masterpiece
Angular 2 interview questions and answers
React js Online Training
Javascript Frameworks Comparison - Angular, Knockout, Ember and Backbone
AngularJS is awesome
React or Angular and SharePoint Framework Development
Reactjs workshop
Tech Talk on ReactJS
Angular js tutorial slides
Unit testing
Gettings started with the superheroic JavaScript library AngularJS
AngularJS One Day Workshop
Latest Javascript MVC & Front End Frameworks 2017
Ad

Similar to AngularJS + React (20)

PDF
Angular2 vs React
PDF
Angular vs react comparison in 2022 which is better and why
PDF
RealDay: Angular.js
PPTX
Decoupled drupal + vue.js
PDF
Moving From Angular to React
PPTX
Engineering Frontends
PPTX
Introduction to Reactjs
PDF
Jayway Web Tech Radar 2015
PDF
PDF
React for Non Techies
PDF
React for non techies
PDF
Which technology has a better future_ AngularJS or ReactJS_.pdf
PDF
Joomla!Day Poland 2013 - Joomla Architecture (Ofer Cohen)
PDF
React for non techies
PDF
Building RESTtful services in MEAN
PDF
5 Key Benefits of Migration
PPTX
mearn-stackjdksjdsfjdkofkdokodkojdj.pptx
PPTX
PDF
Introduction to react native
Angular2 vs React
Angular vs react comparison in 2022 which is better and why
RealDay: Angular.js
Decoupled drupal + vue.js
Moving From Angular to React
Engineering Frontends
Introduction to Reactjs
Jayway Web Tech Radar 2015
React for Non Techies
React for non techies
Which technology has a better future_ AngularJS or ReactJS_.pdf
Joomla!Day Poland 2013 - Joomla Architecture (Ofer Cohen)
React for non techies
Building RESTtful services in MEAN
5 Key Benefits of Migration
mearn-stackjdksjdsfjdkofkdokodkojdj.pptx
Introduction to react native
Ad

Recently uploaded (20)

PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Introduction to Artificial Intelligence
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Become an Agentblazer Champion Challenge Kickoff
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
AI in Product Development-omnex systems
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
L1 - Introduction to python Backend.pptx
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
How to Confidently Manage Project Budgets
PDF
Build Multi-agent using Agent Development Kit
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
AIRLINE PRICE API | FLIGHT API COST |
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
PPTX
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
PPTX
Transform Your Business with a Software ERP System
How Creative Agencies Leverage Project Management Software.pdf
Introduction to Artificial Intelligence
Odoo POS Development Services by CandidRoot Solutions
Become an Agentblazer Champion Challenge Kickoff
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
AI in Product Development-omnex systems
ISO 45001 Occupational Health and Safety Management System
L1 - Introduction to python Backend.pptx
How to Choose the Right IT Partner for Your Business in Malaysia
How to Confidently Manage Project Budgets
Build Multi-agent using Agent Development Kit
VVF-Customer-Presentation2025-Ver1.9.pptx
Online Work Permit System for Fast Permit Processing
Upgrade and Innovation Strategies for SAP ERP Customers
AIRLINE PRICE API | FLIGHT API COST |
How to Migrate SBCGlobal Email to Yahoo Easily
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
Materi_Pemrograman_Komputer-Looping.pptx
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
Transform Your Business with a Software ERP System

AngularJS + React

  • 1. Igor Kosulin, 2015 AngularJS + React Speedup research and comparison
  • 2. What AngularJS is ● MVC client-side framework ● A bridge to future (Web Components, etc) ● Very opinionated framework ● A pretty good working concept how it can be ● Nice for web apps of small and middle size ● Declarative style ● Force to create separate modules
  • 3. What React is ● Virtual DOM framework ● Use reactive concepts for DOM rendering ● Pretty straightforward ● JSX ● Everything is in jsx ● Force to create separate modules ● Thinking in React
  • 4. Why do we need this ● Tired of Angular, want to move forward ● Want to try React ● Replace V in Angular MVC ● Performance issues ● Cause it’s fun to combine uncombinable ● As a proof of concept
  • 5. Javascript evolution ● Simple effects on HTML-page ● Simple libraries ● DOM manipulation frameworks ● MVC frameworks, Virtual DOM frameworks ● Full-stack frameworks?
  • 7. What Angular haters say ● Slow two-way data binding ● Dependency Injection minification issue ● Too much: Provider, Service, Factory…. ● Directives are too complex ● Hard to find developers who can use it ● Angular 2.0 is almost coming ● Poor docs, logic in views, debugging...
  • 8. Angular 1.3 features ● Performance optimization (3-4x faster) ● Easier forms ● ARIA support ● Material design
  • 9. Angular 2.0 ● Total rewrite, but core concepts preserved ● Unified component model ● Modular, mobile-first ● Revised concept of “scope” ● Web Components, ES6, TypeScript 1.5 ● Team will support 1.3 branch for 1.5-2 years after 2.0 final release ● Team will write a converter for old code
  • 11. Angular + React = ngReact ● Angular module ● Can use React Components as directives
  • 13. Javascript code ● Direct DOM manipulation ● Fastest possible version
  • 14. jQuery code ● jQuery.append() ● Overhead of very small
  • 15. ● React code (React Component)
  • 20. ● React code (PersonRow)
  • 21. ● React code (PersonTable)
  • 22. ● React code (ModifiablePersonTable)
  • 23. ● React code (ModifiablePersonTable) That’s finally it… :)
  • 25. ● Angular code (reusable FocusOn directive)
  • 28. Comparison Pros ● Angular code is shorter (23 js + 6 html vs 105 js) ● Angular is more responsive Cons ● Angular is slower to render ● Angular is fatter (memory consumption)
  • 29. When use ngReact ● For existing Angular apps only ● For very big lists (but prefer paging) ● For complex logic (but prefer optimizations) ● For easy slow migration
  • 30. When use Angular ● For web apps small and middle size ● For fast prototyping ● For not very fat apps ● For newbies: a way to learn JS, they will definitely meet all the issues ● For professionals: to write tiny solid code ● “Write less, do more” ⓒ jQuery
  • 31. When use React ● Actually no limits, especially if you want to write many lines of code
  • 32. Thanks for your attention! Any questions?