SEB-72 Week 7 Beginnings of React

SEB-72 Week 7 Beginnings of React

Professional Development

13 Qs

quiz-placeholder

Similar activities

Webinar Series 12 : Membangun Aplikasi Web Modern

Webinar Series 12 : Membangun Aplikasi Web Modern

Professional Development

10 Qs

Zoom Cafe EP4

Zoom Cafe EP4

Professional Development

13 Qs

AWS Technical Essentials

AWS Technical Essentials

Professional Development

10 Qs

ASSESSMENT AND EVALUATION

ASSESSMENT AND EVALUATION

Professional Development

10 Qs

IT Operations

IT Operations

Professional Development

10 Qs

แบบทดสอบ Capcut

แบบทดสอบ Capcut

Professional Development

10 Qs

Firewalls

Firewalls

Professional Development

10 Qs

Importance of Logs

Importance of Logs

Professional Development

15 Qs

SEB-72 Week 7 Beginnings of React

SEB-72 Week 7 Beginnings of React

Assessment

Quiz

Instructional Technology

Professional Development

Medium

Created by

Lay Jones

Used 3+ times

FREE Resource

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the new way to create a new React Project?

npx create vite

npm create-react-app MyApp

npm create vite

npx create-react-app my-app

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What command is used to start the React local server (using the new way of creating a react app)

npm run dev

npm run start

npm run build

node server

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

I get a ' Adjacent JSX elements must be wrapped in an enclosing tag' error with this code, why might that be?:

return (

<div> div 1 </div>

<div> div 2 </div>

);

You need to add a semicolon at the end of each
element

Each div requires a unique id or class

React can only return one parent jsx/html element, you need to put these divs inside of something else.

The return must be {} instead of ()

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In React, how can we pass the data from one component to another?

By using jQuery
By directly modifying the state of the other component
By passing data through URL parameters

Props

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the useState hook in React?

The purpose of the useState hook in React is to add state to functional components.
To create new components in React
To add styling to functional components

To render elements on the page

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct syntax for useState?

const [setValue, value] = useState('initialValue');

const { value, setValue } = useState('initialValue');

const { setValue, value } = useState('initialValue');

const [value, setValue] = useState('initialValue');

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which is not an in-built hook in react

useRef()

useEffect()

useState()

useFetch()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?