JavaScript (dialect of ECMAScript), often abbreviated as JS

JavaScript (/ˈdʒɑːvəskrɪpt/), often abbreviated as JS, is a programming language that is one of the core technologies of the World Wide Web, alongside HTML and CSS. As of 2023, 98.7% of websites use JavaScript on the client side for webpage behavior, often incorporating third-party libraries. All major web browsers have a dedicated JavaScript engine to execute the code on users’ devices.
— Wikipedia

Learning path

React

A component is a piece of reusable code that represents a part of a user interface. It used to render, manage, and update UI elements.

Your own react components, like Board and Square must start with a capital letter.

export default function Square() {  // define main exportable function
  return <button className="square">X</button>; // return JSX element to function caller
}

To “remember” things, components use ==state, useState==.