Skip to main content

Command Palette

Search for a command to run...

Knowledge check: Data flow - React Basic

Updated
1 min read
Knowledge check: Data flow - React Basic
D

A passionate full-stack developer from @ePlus.DEV

  1. Usually, a React app consists of many components, organized as a component tree.

    • True

    • False

  2. Uni-directional data flow is...

    • The term that describes the one-way flow of components in a React app

    • The term that describes the one-way flow of DOM updates in a React app

    • The term that describes the one-way flow of data in a React app.

  3. A component can, at any given time_______. Select all that apply.

    • Receive data as props

    • Pass data as props and receive data as props at the same time

    • Pass data as props

  4. You can only pass a single prop to a component.

    • True

    • False

  5. The props parameter is:

    • An array

    • An object

    • A boolean

    • A string

  6. Consider the following piece of code:

     function MyMenu() {  
       return (  
         <div>  
           <Appetizers />  
         </div>  
       )  
     }
    

    Which element of this code represents a child component?

    • MyMenu()

    • <div>

    • return

    • <Appetizers />

React Basics

Part 10 of 18

In this module you will explore the basic structure and use of the React.js library. You will learn how to produce single page web applications using React components and to use JSX to style them.

Up next

Knowledge check: Dynamic events and how to handle them - React Basic

What code should be added to the element button to make this code snippet valid? function App() { function handleClick() { console.log("clicked") } return ( <div className="App"> <button >Click me</button> </div> ...

Knowledge check: Data flow - React Basic