New game
Download
Get Academic Plan
Share game
Integrate it into your platform

You can integrate the game into an LMS compatible with LTI 1.1 or LTI 1.3 such as Canvas, Moodle, or Blackboard. This way, the scores will be automatically saved into the platform’s gradebook.
Download
You have exceeded the maximum number of games you can integrate into Google Classroom with your current Plan.

To integrate as many games as you want in Google Classroom, you need an Academic Plan or a Commercial Plan.

You have exceeded the maximum number of games you can integrate into Microsoft Teams with your current Plan.

To integrate as many games as you want in Microsoft Teams, you need an Academic Plan or a Commercial Plan.

Downloading games is an exclusive feature for users with an Academic Plan or a Commercial Plan.

Get your Academic Plan or your Commercial Plan now and start integrating your games into your LMS, website or blog.

If you wish, you can download a demo game here and test its integration:

React Class Components Quiz

Quiz

Played 0

About this activity

React class lifecycle basics

Created by

India

Download the paper version to play

Make your own free game from our game creator
Compete against your friends to see who gets the best score in this game

Top Games

%
Anonymous
Anonymous
%
%
%
You have exceeded the maximum number of games you can print with your current Plan.

To print as many games as you want, you need an Academic Plan or a Commercial Plan.

Print your game
React Class Components Quiz
 

React Class Components QuizOnline version

React class lifecycle basics

by Vici Hall
1

1) In a React class component, which method runs after the component is mounted to the DOM?

2

2) Which method is commonly used to initialize state in a class component?

3

3) How are event handlers typically bound in a React class component?

4

4) Which lifecycle method runs to derive state from props before rendering?

5

5) What lifecycle method is called just before a component is removed from the DOM?

6

6) True or False: The render method can set state directly inside it.

Choose one or more answers

7

7) Which lifecycle method lets you optimize rendering by skipping updates?

8

8) Where is the initial state typically declared in a class component?

9

9) What method must return the JSX to render?

10

10) How do you access passed props inside a class component?

11

11) True or False: componentDidMount runs on every re-render.

Choose one or more answers

12

12) True or False: componentWillUnmount is called when the component is removed from the DOM.

Choose one or more answers

13

13) True or False: shouldComponentUpdate is used to prevent unnecessary re-renders.

14

14) Fill in the blank: The lifecycle method called after a component updates due to state/props change is ____________.

15

15) Fill in the blank: A stateful React class component typically extends React.___.

Are you sure you want to leave the page?

If you leave, you will lose the game in progress.