Reactjs Quiz  Eng

Reactjs Quiz Eng

2nd Grade

8 Qs

quiz-placeholder

Similar activities

Motherboard

Motherboard

1st Grade - University

6 Qs

COMPUTER QUIZ

COMPUTER QUIZ

1st - 12th Grade

8 Qs

FE WebDev Week-2

FE WebDev Week-2

1st - 5th Grade

10 Qs

Framer Motion in Web Development

Framer Motion in Web Development

1st - 5th Grade

10 Qs

Angular

Angular

1st - 5th Grade

9 Qs

Von Neumann

Von Neumann

1st - 9th Grade

10 Qs

MOBILE APPLICATION DEVELOPMENT

MOBILE APPLICATION DEVELOPMENT

1st - 10th Grade

10 Qs

1717

1717

1st - 5th Grade

4 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