Consider the given render method which is required to return the content enclosed inside parentheses.
render: function0{
return (
<div> Render me here </div>
);
}
In relation to the given information, which of the following statements is/ are true?
1. If JSX starts on the same line as the return. then parentheses are not needed.
2. Without the parentheses, JavaScript will ignore the given lines and return without a value.
Correct Answer:
Both statements 1 and 2
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More React.js MCQ Questions