Reactjs Quiz  Eng

Reactjs Quiz Eng

2nd Grade

8 Qs

quiz-placeholder

Similar activities

Intro to Computers Valley Head

Intro to Computers Valley Head

KG - University

10 Qs

React Hooks y Fetch

React Hooks y Fetch

1st - 3rd Grade

8 Qs

FE WebDev Week-2

FE WebDev Week-2

1st - 5th Grade

10 Qs

App Development JC 2

App Development JC 2

1st - 7th Grade

12 Qs

Online app icons

Online app icons

1st - 5th Grade

6 Qs

7. Mobile Control LED

7. Mobile Control LED

1st - 10th Grade

7 Qs

Get My Result

Get My Result

2nd - 8th Grade

13 Qs

react-overview

react-overview

1st - 3rd Grade

8 Qs

Reactjs Quiz  Eng

Reactjs Quiz Eng

Assessment

Quiz

Computers

2nd Grade

Medium

Created by

Duc Huynh

Used 1+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct command to create a new React project?

npx create-react-app myReactApp

npm create-react-app myReactApp

npx create-react-app

npm create-react-app

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to start the React local development server?

npm start

npm run

npm run start

npm build

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To develop and run React code, Node.js is required.

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the children prop?

A property that lets you pass data to child components

A property that lets you nest components in other components

A property that adds child values to state

A property that lets you set an object as a property

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

React component names must begin with an uppercase letter.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct syntax to import a Component from React?

import Component from 'react'

import React.Component from 'react'

import [ Component ] from 'react'

import { Component } from 'react'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Find the bug in this code:

Add parenthesis around the return value

Wrap the return in a fragment

Remove the return statement

The first letter of the function must be capitalized

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a rule for React Hooks?

Hooks cannot be conditional

Hooks can only be called inside React Function components

Hooks can be called in Class or Function components

Hooks can only be called at the top level of a component