3.0 Component State

3.0 Component State

University

5 Qs

quiz-placeholder

Similar activities

React-Native Mastermind Challenge

React-Native Mastermind Challenge

University

10 Qs

react topic 10

react topic 10

University

10 Qs

react & native

react & native

University

10 Qs

React hooks

React hooks

University

10 Qs

Quiz 7

Quiz 7

University

10 Qs

Compose Camp Session 2

Compose Camp Session 2

University

7 Qs

React Quiz

React Quiz

University

10 Qs

React right here~

React right here~

University

10 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