|
|
| | Ask HN: To use or not to use React? | |
7 points by blockwriter on May 25, 2022 | hide | past | favorite | 19 comments
|
| | I recently hired a developer to work on a web application I wrote in my spare time over the last two years. After having a look and pointing out several of the flaws, the developer suggested we rewrite the project using React. The web app currently relies on HTML, JavaScript, and CSS for the front-end. What are the pros and cons of using one versus the other? Is React preferable in any way to HTML, JavaScript, and CSS? |
|
![](s.gif)
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
My general rule is newly hired team members can't rewrite systems or major components within their first few months on the team. Of course it isn't an unbreakable rule, but the goal is to make them fully understand the product and clients. A lot of times people want to rewrite things cause they don't understand the problem you are solving and by rewriting the code base they can dig into the problem more. When in reality if you force them to live with the existing codebase for a bit it can help them and you feel more comfortable with a rewrite if that becomes necessary and usually it goes better too.
I've seen devs use react for landing sites that are 3-5 pages and maybe a couple of forms etc all because they didn't know how to interact with forms through javascript. Or one I loved is a new dev saw jquery in a project we had that was still operational and doing great but he freaked out wanting to rewrite a stable cash cow of a codebase cause jquery is "bad". I doubt/hope that isn't your case here, but just make sure you feel confident in the reasoning and it isn't just cause they know react and it is the hammer they use regardless.