Full Stack Development

React and ReactDOM

by Tomas Trescak t.trescak@westernsydney.edu.au

React Fundamentals

Prerequisites

  • Javascript / Typescript
  • HTML / XML
  • CSS
HTML Logo
CSS Logo
Javascript Logo

What is React?

  • Developed by Facebook
  • Designed to build reactive user interfaces
  • Excels in building complex, interactive, and scalable front-end applications.
  • UIs Composed of Components
React Logo

What is React?

What is React?

What is React?

Home page of www.github.com

Virtual DOM

React Packages

React and ReactDOM

    import React from 'react';
import ReactDOM from 'react-dom';

function Hello() {
  return <h1>Hello, world!</h1>;
}

// Render the App component 
// into the root element
const root = ReactDOM.createRoot(
  document.getElementById("root")
);
root.render(<Hello />);
  
Hello World!

React Playground

Hello World

Click
Click
Click
Click
Click
Click
⏸️ Paused