3.0 Component State

3.0 Component State

University

5 Qs

quiz-placeholder

Similar activities

Quiz-5

Quiz-5

University

10 Qs

Chapter 1 -  Introducing Today's Technologies

Chapter 1 - Introducing Today's Technologies

University

10 Qs

Week 9  C# (for Java programmers)

Week 9 C# (for Java programmers)

University

10 Qs

React.Js quiz

React.Js quiz

University

10 Qs

REACT-2

REACT-2

University

10 Qs

React Native Basics

React Native Basics

University

10 Qs

ISP501 Exercise 1

ISP501 Exercise 1

University

10 Qs

useLocalStorage  - Custom React Hook

useLocalStorage - Custom React Hook

University

9 Qs

3.0 Component State

3.0 Component State

Assessment

Quiz

Computers

University

Medium

Created by

Mike Denton

Used 2+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What kind of React components traditionally have state?

Functional Components

Class Components

All Components

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What statement is correct about props in React?

Props are readonly and cannot change

Props can change at any time

Props manage their own internal state

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What statement is correct about state in React?

State is readonly and cannot change

There is no state in React

State can change internally at any time

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do we change state in React?

We change state directly using state keyword

We change state indirectly using setState

We can never change state

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What does the extends mean in JavaScript?

It is used to create a child class of another class (parent)

It is used to create a parent class of another class (child)

It is used to extend the Node.js architecture