React

Also known as: React.js, ReactJS

React is a JavaScript / TypeScript UI library for composing components. State updates schedule re-renders of components that read that state. Hooks such as useState and useEffect cover local state and subscribe / cleanup. Next.js is a common full-stack React framework. React can consume reactive state; it is not a classic FRP runtime (Event + Behavior with tag / hold).

import { useState } from "react";

function ClickCounter() {
  const [count, setCount] = useState(0);
  return (
    <button onClick={() => setCount((c) => c + 1)}>
      {count}
    </button>
  );
}

← Back to CS Glossary