News for hackers. Stuff that matters.

Ask HN: Often have you had to re-write a legacy front end application

How often have you needed to modernize a legacy frontend application and re-build them using a more modern technology/framework like React/Angular etc.?

At my current job, I have to migrate a JQuery dashboard to React. I was wondering what other people's experience has been in this regard.

What were some of the pitfalls that I should look out for?

If you ever had to do it, what was the most painful part of this migration?

( 3 comments | 4 points | on HN )
Re:Ask HN: Often have you had to re-write a legacy front end... by cimmanom on Monday March 11, 2019 @09:23AM (#19358738)
OT: the automatic removal of “how” from the beginning of titles is not exactly working out so well.
Re:Ask HN: Often have you had to re-write a legacy front end... by dyeje on Monday March 11, 2019 @10:06AM (#19359034)
It's a fairly common task in my experience. Focus on converting one component at a time and it should go smoothly. Don't try to do a complete rewrite at once.
Re:Ask HN: Often have you had to re-write a legacy front end... by ezekg on Tuesday March 12, 2019 @06:44PM (#19373847)
Using React, an incremental re-write is pretty easy, since it can be plugged in for certain components as they become available. Slowly re-write components in React as you modify them, and always write new components in React. Not sure about Vue, but I believe it's the same.