educative.io

Educative

Meet react component quiz answers?

What is meant when the lesson says “Components are independent”?

It’s an answer to the quiz. It’s not mentioned within the lesson itself.

And the statement basically doesn’t mean anything. The explanation given doesn’t given any further info. It repeats itself.

Furthermore, what does “Identical to JavaScript functions” mean, and why is it incorrect? React components ARE JavaScript functions.

The only relevant piece of content in the lesson is

“First, this React component, called App component, is similar to a JavaScript function but not particular javascript function.”

Which is also confusing, what is the word “particular” used for in this case?

Hi @Oli_Treadwell

The “Components are independent” means that they work individually to return JSX code as an element, so each component can be used separately.

The "Identical to JavaScript functions” means that the React components are exactly the same as the javascript function, but this is incorrect. They are the same as javascript functions, but they work individually to return JSX code as an element, so each component can be used separately. Therefore this option is incorrect.

“First, this React component, called App component, is similar to a JavaScript function but not a particular javascript function.” the word “particular” means that the react components are the same as javascript functions but not precisely, or you can say exactly the same.

Thank you and Happy learning :slight_smile: