Advanced Web Programming

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

1/89

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 5:19 PM on 8/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

90 Terms

1
New cards

React Event

is an action performed by the user or the browser

2
New cards
  • Button click

  • Mouse hover

  • Form Submission

  • Text Input

  • Keyboard Press

  • Drag and Drop


Examples of React Event

3
New cards
  • onClick

  • onDoubleClick

  • onSubmit

  • onChange

  • onMouseEnter

  • onMouseLeave

  • onKeyDown

  • onKeyUp


Common React Events

4
New cards

camelCase

react uses —— for event names

5
New cards

<button onClick={clickMe}>

react syntax for onClick

6
New cards

React State

is a built in react project that stores data that may change over time

7
New cards
  • react automatically updates the ui

  • component rerenders

  • the latest data is displayed


what happens when the state changes (3 examples)

8
New cards

interactive

state makes application —-

9
New cards

useState

is a react hook that allows a functional component to store and update data. whenever the stored data changes, react automatically updates the screen

10
New cards

count

holds the current value of the state

11
New cards

setcount

function used to update the value of count

12
New cards

useState(0)

sets the initial value to 0

13
New cards

import { useState } from “react”;

how to import useState

14
New cards

setState()

this is before Hooks existed, react mainly used Class Components

15
New cards

setState()

used in class components

16
New cards

useState()

used in functional components

17
New cards

setState()

uses this.setState()

18
New cards

useState()

uses useState() Hook

19
New cards

React Stateless Component

is a react component that does not manage its own state

20
New cards

React Stateless components

it receives data from its parent component through props and displays that date

21
New cards

Presentational component

React Stateless components is also called as?

22
New cards

Presentational Component

primary purpose is to present information

23
New cards
  • Website Header

  • Navigation Bar

  • Footer

  • Company Logo

  • Product Card

  • User Profile Card

  • Course Card

  • News Card

  • Employee Information Card

  • Contact Card


Examples of Stateless components that simply display information

24
New cards

Layout Component

is a reusable component that defines the overall structure of a webpage

25
New cards

React Advanced components

are reusable components and libraries that simplify the development of modern applications

26
New cards

libraries

instead of building everything from scratch, developers use existing —- to create applications faster and more efficiently

27
New cards
  • navigation bars

  • sidebars

  • cards

  • tables

  • maps

  • pagination

  • responsive layout


example of react advanced components

28
New cards

Pagination

divides a large amount of data into smaller pages.

29
New cards

Material UI

commonly called MUI, is an open-source react component library that implements material design

30
New cards

material ui

it provides ready to use components such as buttons, cards, dialogs, forms, navigation bars and tables.

31
New cards
  • button

  • card

  • textfield

  • appbar

  • alert

  • dialog

  • table

  • grid


Examples of MUI components

32
New cards

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

syntax for installing material UI

33
New cards

react bootstrap

is a library that rebuilds bootstrap components as react components

34
New cards

react bootsrap

it replaces bootstrap’s javascript behavior with react based components and does not require jQuery

35
New cards
  • container

  • row

  • col

  • navbar

  • card

  • button

  • modal

  • form

  • alert


example of react bootsrap

36
New cards

npm install react-bootstrap bootsrap

syntax for installing bootstrap

37
New cards

react map

displays geographical information inside a react application

38
New cards

react leaflet

provides react bindings for the leaflet mapping library. it uses leaflet functionality through react components

39
New cards

npm install leaflet react-leaflet

syntax for installing react leaflet

40
New cards

react table

displays structured information using rows and columns

41
New cards

tanstack table

basic table can be created using html elements but for more advanced functions this is what libraries developers uses

42
New cards

tanstack table

is a headless table library. it provides table logic while allowing developers to control the final design and markup

43
New cards

form

is a user interface that collects information from users

44
New cards

react forms

use standard html form elements, but their values and behaviors can be managed by react components

45
New cards

react

supports both controlled and uncontrolled form elements, but controlled components are commonly taught because react states become the primary source of the input value

46
New cards

html form

browser manages form date

47
New cards

react form

react manages form data

48
New cards

html form

page reload after submit

49
New cards

react form

no page reload

50
New cards

html form

a form that uses DOM

51
New cards

react form

a form that uses state

52
New cards

html form

a form that is less interactive

53
New cards

react form

a form that is highly interactive

54
New cards

html form

a form that validates mostly after submission

55
New cards

react form

a form that can validate while typing

56
New cards

text input

allows users to enter a single line of text

57
New cards

password input

hides the characters entered to protect sensitive

58
New cards

email input

is used to collect addresses and provides basic format validation

59
New cards

number input

allows users to enter numeric values only

60
New cards

textarea

allows users to enter multiple lines of text

61
New cards

select dropdown

lets uses choose one option from a list

62
New cards

radio button

allows users to select only one option from a group

63
New cards

checkbox

allows users to select one or more options

64
New cards

submit button

sends the form data for processing

65
New cards

controlled components

input value comes from state

66
New cards

react forms handling

refers to the way react application captures, manages, validates, and submit user input from forms such as login pages, registration forms, search bars, and contact forms.

67
New cards

controlled component

is a form element whose value is controlled by reacts state

68
New cards

uncontrolled component

stores form data inside the DOM instead of react state

69
New cards

form validation

checks the data entered by the user before the application accepts or submits it.

70
New cards

client side validation

validation happens inside the users browser before the data is sent to the server

71
New cards

server side validation

validation happens on the server after the form data is submitted

72
New cards

required validation

the required attribute that prevents the form from being submitted if the field is empty

73
New cards

email validation

checks if the input is in valid email format

74
New cards

password length validation

the password must be between 8 and 20 characters

75
New cards

number validation

only numbers between 18 and 60 are accepted

76
New cards

pattern validation

ensures that the users input follows a specific format by using a pattern.

77
New cards

custom validation

is the process of creating your own validation rules using javascript and react instead of relying on the browsers built in validation.

78
New cards

react hooks

are special javascript function introduced in react 16.8 that allow developers to use react features such as state, lifecycle methods and context inside functional components

79
New cards

class components

all features were available in this component before hooks exists

80
New cards
  1. simpler code

  2. reusable logic

  3. better readability

  4. easier maintenance

  5. improved performance


benefits of react hooks

81
New cards

hooks extended your feature again. help optimize rendering performance

useMemo and Callback

82
New cards

useState

manages data inside a component

83
New cards

useEffect

performs side effects after rendering

84
New cards

useContext

shares data across multiple components without passing props manually

85
New cards

useRef

accesses dom elements or stores values that dont trigger rendering

86
New cards

useMemo

stores the result of an expensive calculation

87
New cards

useCallback

prevents a function from being recreated unnecessarily

88
New cards

useReducer

manages the complex state logic

89
New cards

custom hook

created reusable logic that can be shared between component

90
New cards

hooks

are called inside a functional component