
Mechanics of React: A Beginner's Intro To React
The React Show
00:00
The Importance of JavaScript in Programming
With plain JavaScript, you can create a button element inside of React by calling a function provided by React. But for complex UIs with many nested elements, it's very hard to read and work with as a programmer. So instead, you can use JSX and write these HTML-like tags. It'll feel like you're writing HTML pretty much. And you can just write a button tag very similar to how you would do it in HTML. Before your program can be run in the browser, a compiler converts the JSX code to that plain JavaScript code we were talking about earlier that calls create element.
Transcript
Play full episode