Search Header Logo

React Intro

Authored by Kelvin Kipchumba

Information Technology (IT)

Professional Development

Used 8+ times

React Intro
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is react?

Javascript framework for creating user interfaces

Javascript library for creating user interfaces

A programming language used for web app development.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is a way of creating react app?

npx create-react-app my-app

npm create vite@latest my-app --template react

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a component in React?

A function that only manages data storage in a React application.

  • A tool that converts JavaScript code into HTML and CSS for rendering the UI.

  • A reusable piece of UI that can manage its own content, logic, and styling, and can be combined with other components to build complex applications.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is JSX in react?

JSX is a syntax extension for JavaScript that allows writing HTML-like code within JavaScript, making it easier to structure React components.

JSX is a JavaScript framework for handling backend logic in React

JSX is a CSS styling method used to apply styles directly within JavaScript in React.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to render a component called Home in React?

<Home />

<Home></Home>

{Home}

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is the correct way to import a component in React?

import './MyComponent' as MyComponent;

import MyComponent from './MyComponent';

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you start a React app created with Vite?

Run npm start in the project directory.

Run npm run dev in the project directory.

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?