FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
Angular 2 vs React
1.
2. About me
● Iran Reyes Fleitas
● 27 years old
● Happy working for Jam3
Disclaimer
● More than 3 years working full with AngularJS
● Switched to React at the end of 2015
6. Framework vs Library
Angular is FULL
● Routing
● Testing
● Structure
● Recommended Packaging
● Recommended Language
● Web API calls
● Templating
● Forms
● Style Scoping
7. Framework vs Library
React is “EMPTY”
● Addons
● Many react external libraries
● Easily integration with 3rd parties
14. Features - Typescript vs ES6
Your
● Bad documentation in ES6 for Angular 2
● Typescript fit better for big projects (mmm, I don’t like this)
● Too much code for things that are straightforward
● Another thing to learn and deal
● Less common errors
● Easy Intellisense
● Name replacements
● Better IDE Support
16. Features - JSX vs HTML Templates
Angular 2 remains HTML-centric rather than JavaScript-centric
JavaScript is far more powerful than HTML
● No need to learn more new syntax.
● Faster. Easy to debug.
● Intellisense
● Better errors (Angular has a own HTML parser)
● Compile-Time Checking
● Away from the current Web Components standards
22. Features - Server Rendering
● Longer time in the web
● Many examples
● Real apps using it
● Not completely ready yet
● Not many examples
● Lack of good articles
SEO PWA
23. Features - Routing
● Doesn’t have one by default
● Most popular: React-router
● Good integration with flux and redux
● Comes with one by default
● Can be replaced
● Native Lazy loading support: AsyncRoute
25. Features - Testing
● Comes with Karma(Test runner)
● Comes with Protractor(E2E tests)
● Dependency Injection
● “Doesn’t” have one by default: ReactTestUtils
● Use Jest to run your tests(Jasmine)
● Enzyme + Mocha
● Use Karma and Protractor
26. Features - Animations
● Animation Library 2.0
○ http://slides.yearofmoo.com/ng-conf-2016-slides/index.html
● “Doesn’t” have one by default:
○ ReactCSSTransitionGroup
○ ReactTransitionGroup
● React F1
● React Motion
So much better!!!!!
27. ● Full documented for SystemJS
● Well documented for Webpack
● Poor documented for Browserify
● Some moves to Rollup
Features - Packaging
● Browserify
● WebPack
● SystemJS
● UMD