Q. Which of the following is a correct way to define a functional component?

निम्नलिखित में से कौन सा एक कार्यात्मक घटक को परिभाषित करने का सही तरीका है?

A
function App() { return < h1 >Hello< /h1 >; }
B
App = () => < h1 >Hello< /h1 >;
C
const App = function() { return < h1 >Hello< /h1 >; };
D
All of the above

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment