React

ReactJS Practical Questions - this code to get it ...

27.

What do you need to change about this code to get it to run?

import React from 'react';

class App extends React.Component {
  render() {
    return (
      <div>
        <h1>Hello, World!</h1>
      </div>
    );
  }
}

export default App;

Change the import statement to import React, { Component } from 'react';

Remove the export default App; statement

Remove the <div> element

None of the above