After Activity

After Activity

Professional Development

5 Qs

quiz-placeholder

Similar activities

Canvas Apps Quiz

Canvas Apps Quiz

Professional Development

10 Qs

Docker 1

Docker 1

Professional Development

9 Qs

QAQC Quiz

QAQC Quiz

Professional Development

10 Qs

Aplicaciones para móviles

Aplicaciones para móviles

University - Professional Development

10 Qs

Laravel 1

Laravel 1

Professional Development

10 Qs

React Basics and Vite Setup

React Basics and Vite Setup

Professional Development

10 Qs

Apps & Systemprogramme

Apps & Systemprogramme

Professional Development

10 Qs

React State and props

React State and props

Professional Development

8 Qs

After Activity

After Activity

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Ms STAFF

Used 2+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following lifecycle methods is available in class components but NOT in functional components?

  • useEffect

  • useState

  • render

componentDidMount

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to pass props to a component?

<Welcome message="Hello" />

<Welcome.prop message="Hello" />

<Welcome.props message="Hello" />

<Welcome, message="Hello">

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In class components, how do you access props?

props.message

this.props.message

message.props

prop.message

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is correct about JSX?

JSX is mandatory in React

JSX makes HTML writing easier inside JavaScript

JSX is compiled by Python

JSX does not support expressions

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to create a basic React app?

npx create-react-app myApp

npm build myApp

react init myApp

create-react-app myApp --init