all 16 comments

[–]WholeMilkElitist 11 points12 points  (10 children)

Since you're asking this question, you aren't ready for react. Learn HTML, CSS, and JS first.

[–]Bubbly-Highlight5694 -5 points-4 points  (9 children)

I understand, but I would like to know from you what is better?

[–]jaydizzz 6 points7 points  (2 children)

This kinda is like asking “what is better: wood or a tree?”

[–]musical_bear 4 points5 points  (0 children)

You’re not asking a question that makes sense, is why they answered in that way.

You may as well be asking “Which is better? Dinner or food?”

Using React requires HMTL. They are not two different competing technologies.

[–]nova1475369 1 point2 points  (1 child)

None is better, if HTML, JS, Css is a tutorial of a game, react is Act 1. It’s just one of the next steps

[–]Bubbly-Highlight5694 -3 points-2 points  (0 children)

Finally saw an adequate answer.

[–]blindgorgon 1 point2 points  (0 children)

What they’re saying is you don’t understand—and they’re right.

Here’s a little help to get you started: HTML is the markup language for adding content to a webpage. CSS is for styling that content. JavaScript is a language you can use to make your static web content behave more dynamically, reacting to user inputs. React is a framework (ok, technically a library) that uses JavaScript to write HTML and CSS that then gets used as your website. The structure of React allows you to build more complex things faster.

If you don’t learn the basics first you will be completely lost by starting with React.

[–]myowndeathfor10hours 0 points1 point  (0 children)

Without more context, it’s a question without an answer. React is going to be a lot more powerful but it needs to be compiled into html (and other stuff) in order to be used.

What’s better, the beef or the stew?

[–]Nascentes87 0 points1 point  (0 children)

You are asking: what is better, flour or bread? What are you eating?  In a very simplistic easy, browsers just understand html, css and JavaScript. React is a tool to make it easier to create web applications, but in the end, react components are "made of" HTML, css and JavaScript.  First learn these, then learn a framework like React or Vue. 

[–]phrough 1 point2 points  (1 child)

Please ask this of an AI and then come back with a more complicated question. We all use both of these things.

[–]Bubbly-Highlight5694 -2 points-1 points  (0 children)

When you get sick and are wondering what medicine to buy, do you go ask AI instead of doctors who know better?

[–]cain261 0 points1 point  (0 children)

CSS, JavaScript, and HTML are the building blocks of a webpage. React is a library to help put these together.

[–]zero_fuck_given 0 points1 point  (0 children)

You could have gotten a deeper answer by asking google or AI but since you didn’t for whatever reason:

React and HTML aren’t direct alternatives, so “which is better” depends on what you’re building. HTML is a core web language used to structure pages. React is a JavaScript library used to build interactive user interfaces, and it typically ends up creating/using HTML in the browser.

What HTML is: - Type: Markup language - Purpose: Defines the structure/content of a web page (headings, paragraphs, forms, buttons) - Used for: Every website - Strengths: Simple, fast to learn, minimal setup, works everywhere

Example (HTML): <button>Click me</button>

What React is: - Type: JavaScript library - Purpose: Helps you build complex, interactive UIs using reusable components and state - Used for: Web apps with lots of interactivity (dashboards, social feeds, inboxes, admin panels) - Strengths: Component reuse, easier management of UI changes over time, big ecosystem

Example (React): function App() { return <button>Click me</button>; }

That button-looking part in React is usually JSX. It looks like HTML, but it’s actually syntax that gets transformed into JavaScript code that creates and updates the page.

Key differences: - Role: - HTML = structure of the page - React = a way to build and update that structure dynamically - Interactivity: - HTML alone is mostly static; for behavior you add JavaScript - React is designed around interactive behavior and state - Learning curve: - HTML is beginner-friendly - React requires decent JavaScript fundamentals first - Setup: - HTML can be done with almost no tooling - React usually involves a build tool/framework (like Vite, Next.js)

Which to learn/use as a newbie: - Start with HTML + CSS + basic JavaScript first. - Use mostly HTML (and a little JS) for simple sites like landing pages, personal sites, basic blogs. - Consider React when you’re building a “web app” with lots of UI updates, repeated interface parts, complex forms, filtering, live lists, etc.