Search Header Logo

React and Hooks

Authored by Farabi Chowdhury

Computers

Professional Development

Used 132+ times

React and Hooks
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 • 5 pts

In which version of React did Hooks add?

15.6
16
16.8
18.1

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What are Hooks?

Class components
Function components
Javascript functions
Lifecycle methods

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which is not an in-build hook?

useEffect
useFetch
useState
useRef

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

In which phase of lifecycles do the states initialise?

Updating
Mounting
Unmounting
Both 1 and 2

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which won't cause re-render in the component?

Changes in state
Changes in props
Changes in .current of useRef
Changes in dependency array of useEffect

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of the following is(are) correct methods to create reactJS component

class MyComponent extends React.Component { render() { return ( <div>Demo</div> ) } }
const MyComponent = () => { return ( <div>Demo</div> ) }
function MyComponent = () => { return ( <div>Demo</div> ) }
Only a
a, b and c

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

We can integrate reactJS in any of the existing web app

true
false

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?