Search Header Logo

Into to React.js

Authored by Kelsey Schroeder

Computers

Professional Development

Used 6+ times

Into to React.js
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is React JS?

 A JavaScript library for building user interfaces

A server-side framework for building web applications

A programming language for building web applications

A front-end framework for building mobile applications

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

React component can return how many parent html tags

one

multiple

two

three

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt


Which statements are true about a React Component? Select all that apply.

It can be written as a Class

It can be written as a Function

It returns HTML

Bypasses the need for a HTML document alltogether

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is true about React?

React helps us bring rendering logic and markup together in the same place to intelligently update the dom


React Components return HTML, the same as a HTML page with Vanilla DOM.

React was created by facebook, so only their engineers can design new customized packages to use with React

Can only be used Via CDN

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will this component render?

const List = (props) => {

const lang = ["Java", "Python", "Ruby", "Javascript"]
return ( <div>                                      
{lang.map(el => <p>{el}</p>)}
      </div>)                                  

}

Error. Cannot use direct JavaScript code in JSX

Error. Should be replaced with a for..loop for correct output

Displays the list of languages in the array

Displays nothing

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the useState hook in React?

To handle user interactions within a component

To define the layout of a component

To "remember" values and have a method to update them

To take a 'snapshot' of the component details and log it to the console.

To enable us to use JSX

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is JSX in React.js?

A syntax extension for JavaScript

A package manager for React.js

A testing framework for React.js

A styling framework for React.js

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?