React

ReactJS Practical Questions - What is the output o...

1.

What is the output of the following React code?

import React from 'react';

function App() {
  return (
    <div>
      <h1>Hello, World!</h1>
    </div>
  );
}

export default App;

"Hello, World!"

An error will occur

An empty page will be displayed

Nothing will be displayed on the page

1 / 30

Next