5 ms·
> We were taught to never mix HTML and JS and put markup in a separate file. Yeah, but we were all still doing it anyways. Maybe not for our web pages, but def
by sfvisser 6y ago
> We were taught to never mix HTML and JS and put markup in a separate file.
Yeah, but we were all still doing it anyways. Maybe not for our web pages, but definitely for our apps. I don’t think that part of react has ever been very controversial to people who were already building large webapps to begin with.
- antris 6y agoYes I agree, React broke that mould and web apps are better for it. But it was controversial. The React team even got ridiculed early on: https://www.youtube.com/watch?v=x7cQ3mrcKaY#t=35s https://www.youtube.com/watch?v=x7cQ3mrcKaY#t=35s And the person who wrote that tweet wasn't alone. It's perhaps easy to forget how much opposition there was to React. Facebook was quite a bit further than many in the industry, and Pete Hunt from Facebook admits that "we weren't communicating what we were doing". It was a bit much to swallow for many at first, but in the end, the VDOM was such a powerful idea that React was destined to take off sooner or later.
- tshaddox 6y agoGetting ridiculed early on and then quickly becoming by far the most prominent and popular library in your category doesn’t sound so bad. It’s not something I would criticize React for.
- antris 6y agoI'm not criticizing the team. I definitely couldn't have done a better job myself. Hindsight is 20/20, I'm just observing and trying to dissect what it's like to learn React from scratch in... 2020.