Lesson 4 & 5 React Event, States Management and Components

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/31

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:31 PM on 8/25/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

32 Terms

1
New cards

React Event

An action performed by the user or the browser (such as clicking a button, hovering a mouse, or pressing a key) that React listens for to execute a function.

2
New cards

onClick

A React event listener triggered when a user clicks an element.

3
New cards

onDoubleClick

A React event listener triggered when a user double-clicks an element.

4
New cards

onChange

A React event listener triggered when an input value changes.

5
New cards

onSubmit

A React event listener triggered when a form is submitted.

6
New cards

onMouseEnter

A React event listener triggered when the mouse enters an element.

7
New cards

onMouseLeave

A React event listener triggered when the mouse leaves an element.

8
New cards

onKeyDown

A React event listener triggered when a key is pressed.

9
New cards

onKeyUp

A React event listener triggered when a key is released.

10
New cards

camelCase

In Event handling syntax, React uses __ for event names.

11
New cards

React State

A built-in React object that stores data that may change over time, automatically updating the UI and re-rendering the component whenever it changes.

12
New cards

Without State

  • Data cannot change dynamically.

  • UI remains static.

  • User interactions have no visible effect.


13
New cards

With State

  • Counters update.

  • Forms respond instantly.

  • Shopping carts change.

  • Dashboards refresh automatically.


14
New cards

useState()

A React Hook that allows functional components to store and update data, automatically updating the screen whenever the stored data changes.

15
New cards

Class Components

Before Hooks existed, React mainly used ____.

16
New cards

setState()

A method used in React Class Components to update state using this.setState().

17
New cards

Stateless Component

A React component (also called a Presentational Component) that does not manage its own state, but instead receives data from its parent component through Props and presents the UI.

18
New cards

Layout Component

A reusable component that defines the overall structure of a webpage, organizing common sections like the Header, Navigation Menu, Sidebar, Main Content, and Footer.

19
New cards

React Advanced Components

Reusable components and libraries (such as Navigation Bars, Sidebars, Cards, Tables, Maps, and Pagination) that simplify and accelerate the development of web applications.

20
New cards

Pagination

A technique that divides a large amount of data into smaller pages, controlling how many rows or records are displayed at once to improve navigation and performance.

21
New cards

Why Use Pagination?

  • Reduces the amount of information displayed at one time.

  • Makes a page easier to read.

  • Improves navigation.

  • Organizes large datasets.

  • Can improve application performance.

  • Prevents long and crowded pages.


22
New cards

Material UI (MUI)

An open-source React component library that implements Material Design and provides pre-built components like Button, Card, TextField, AppBar, Alert, Dialog, Table, and Grid.

23
New cards

To install Material UI

npm install @mui/material @emotion/react @emotion/styled

For Material icons:

npm install @mui/icons-material


24
New cards

React Bootstrap

A library that rebuilds Bootstrap components as React components, replacing Bootstrap's JavaScript behavior with React-based components without requiring jQuery.

25
New cards

Installing React Bootstrap

npm install react-bootsrap bootstrap


26
New cards

Import the Bootsrap stylesheet in main.jsx

import "bootstrap/dist/css/bootstrap.min.css";


27
New cards

React Map

A component or library feature used to display geographical information, business locations, or routes inside a React application.

28
New cards

React Leaflet

A library providing React bindings for the Leaflet mapping library, allowing developers to use Leaflet functionality via React components.

29
New cards

Installing React Leaflet

npm install leaflet react-leaflet


30
New cards

React Table

A component structure used to display structured information using rows and columns, such as student records or product lists.

31
New cards

TanStack Table

A headless table library for React that provides table logic while allowing developers full control over the final design and markup.

32
New cards

Installing TanStack React Table

npm install @tanstack/react-table