SlideShare a Scribd company logo
Moda Jovem: Moving from
Angular to React
Ilya Gurevich
Who am I?
● Recent grad from Georgia
Institute of Technology
● Frontend engineer
● Water polo player
● World traveler
● Music head
What is Loadsmart?
Logistics
Technology
Imagine
18,000 kg of beer from New York to Los Angeles
In the past...
● Takes a long time
● Expensive
Call to Broker
Happening now!
Instant Quoting
● Fast
● Algorithmic
● Accurate
Imagine
You own a truck.
You need business.
Where do you go?
In the past...
● Confusing
● Overwhelming
Search Load Boards
Happening now!
Customized Loads
● One-click interaction
● Specifically tuned for the user
+
Frontend Stack
3rd Party Tools
Angular to React
Why we wanted to change
The Programmer Answer
We want a framework that’s faster
and simpler to develop with.
The Honest Answer?
We just wanted to update our
framework because everyone else was doing it.
Also known as hype driven development
But Mainly?
Just kidding
We did our research
Research
ReactAngular2 VueJs
Time For Some Reading
Angular 2
● Two-way data binding
● Component-based
● Better speed and performance than Angular 1
● AOT (Ahead-of-Time compilation)
● Directives and filters are awesome
Pros
Angular 2
● Typescript
● Unclear documentation
● Really high learning curve
Cons
● “Angular 2 is terrible”
● Regular DOM
● Large
VueJS
● Lightweight
● Fast build process
● Angular-type directives
● Component based
● Virtual DOM
● Two-way binding on inputs
● Amazing documentation
Pros
VueJS
● Semi-confusing syntax
● Small community
● Free-form conventions
● Majority of developers are Chinese
● Causes a language barrier
Cons
React
● Component-based
● Virtual DOM
● Light-weight
● Seamless development experience
● Good testing compatibility
● Huge community
Pros
React
● React isn’t a framework
● Fairly new
● Patent difficulties
● JSX learning curve
Cons
● Documentation could be
better
● Nested props callbacks
● Update values on forms
manually
Why we ultimately chose React
React over VueJS
VueJS is still too small
React has a larger community
React is better for large applications
But...
VueJS is growing
Definitely a framework to look forward to
Immediate Roadblocks
Questions to Question
How to do proper form validation?
Which HTTP client to use?
What even is JSX?
Moving From Angular to React
Moving From Angular to React
AXIOS
Immediate Simplifications
Angular is a monster compared to React
Files are much more organized
Small and fast build size
Bad things
Nested Prop Callbacks
Nested Prop Callbacks
One function - showAccepted()
● List
○ LoadsControl
■ Loads
● WebList
○ AcceptDialogWeb
■ ConfirmationDialog
● DriverLocationDialog
That’s 7 different components
Good things
JSX is awesome
Why?
● Conditional rendering is simple
● State changes are intuitive
● HTML + Javascript makes sense
○ Functions in markup
● Testing with jest is easy
● Not restricted to template language
Long-term implications
● We have some serious tech debt.
● We haven’t converted everything from angular to react.
● Rebuilding the whole website from scratch is time-consuming.
● Given the nature of the industry a new framework will come along that
completely changes everything anyways.
Final Thoughts
Was it worth it?
Yes, definitely
THANK YOU
FOR YOUR TIME

More Related Content

Moving From Angular to React