Question: Which item is correct about a class - based component and a function - based component? Group of answer choices A class - based component
Which item is correct about a classbased component and a functionbased component?
Group of answer choices
A classbased component defines an ES class.
A functionbased component gets some values as inputs and returns some react element as outputs. A classbased component can get some inputs indirectly through global variables and returns some react elements from an ES class defined in the component as outputs.
The output of both functionbased and classbased components will be rendered to the DOM.
All answers are correct.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
