1
3 Comments

Apply React to existing HTML

Hey, I am having a doubt,

One of the devs working on my project insists that they start with the HTML only in first phase and then continue with the logic, in React, in the second phase. My doubt is if it's possible to apply React at an to an existing HTML and if that doesn't make the whole work much more complex? I am a mobile dev myself, that is where I am drawing parallels.

Thanks

edit: just to clarify, the dev team is outsourced via Freelancer and It's my first time with them.

on May 14, 2020
  1. 1

    I wouldn't recommend it either.

    There is no actual reason to start of with HTML and then migrate it to react other than the incapability of the dev. And in that case, I doubt the dev will migrate it back to react, so you will have to pay another dev to redo the work.

    I would say go over the freelancer's experience, and be firm on your requirements. You can find a lot of react developers ready to take on projects at any time.

  2. 1

    Unless there's a compelling reason (e.g. for server rendering purposes) you shouldn't. Use a tool such as create react app.

  3. 1

    If there is no reactivity and don't React, that's fine.

    This scenario is a good example why I prefer Vue over React. You can actually have a better separation. With Vue, you actually write HTML, CSS, and JavaScript. In React, it's all JavaScript in the end (that HTML is not HTML, but JSX).

    What is your project?

  4. 3

    This comment was deleted 6 years ago