
True or False: In React, props is an object.
True
False
True or False: You can pass a prop to a component by adding an attribute to the component being rendered, with the attribute’s value becoming the value of the passed-in prop
True
False
What is the error in the code below?
function Greeting() { return <h1>Hello, {props.name}</h1> } export default GreetingThe Greeting function should receive a
propsparameter.You need to add extra spacing after the function's name.
You should always add a pair of parentheses after the
returnkeyword.
About the author
A passionate full-stack developer from @ePlus.DEV
Comments
Join the discussionNo comments yet. Be the first to comment.
React Basics
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.






